public static extern int JS_ToIndex(JSContext ctx, out uint64_t plen, JSValueConst val);
public static extern JSValue JSB_NewBridgeClassValue(JSContext ctx, JSValue new_target, int32_t size);
public static extern int32_t JSB_GetBridgeType(JSContext ctx, JSValue obj);
public static extern JSValue jsb_construct_bridge_object(JSContext ctx, JSValue proto, int32_t object_id);
public static extern JSValue JSB_NewBridgeClassObject(JSContext ctx, JSValue new_target, int object_id);
public static extern JSAtom JS_GetModuleName(JSContext ctx, JSModuleDef m);
public static extern IntPtr JS_GetArrayBuffer(JSContext ctx, out size_t psize, JSValueConst obj);
public static extern unsafe JSValue JS_ReadObject(JSContext ctx, byte *buf, size_t buf_len, int flags);
public static extern unsafe JSValue JS_Eval(JSContext ctx, byte *input, size_t input_len, byte *filename, JSEvalFlags eval_flags);
public static extern void js_free(JSContext ctx, IntPtr ptr);
public static extern IntPtr JS_WriteObject(JSContext ctx, out size_t psize, JSValueConst obj, int flags);
public static extern JS_BOOL JSB_ToUint32(JSContext ctx, out uint32_t pres, JSValueConst val);
public static extern uint32_t JSB_ToUint32z(JSContext ctx, JSValueConst val);
public static extern int JS_ToFloat64(JSContext ctx, out double pres, JSValueConst val);
public static extern void JS_FreeCString(JSContext ctx, IntPtr ptr);
public static extern JSValue JS_EvalFunction(JSContext ctx, JSValue fun_obj);
public static extern JSValue JS_GetImportMeta(JSContext ctx, JSModuleDef m);
public static extern int JS_ResolveModule(JSContext ctx, JSValueConst obj);
public static extern unsafe IntPtr js_strndup(JSContext ctx, byte *s, size_t n);
public static bool JS_IsBigInt(JSContext ctx, JSValueConst v) { var tag = v.tag; return(tag == JS_TAG_BIG_INT); }
public static extern unsafe JSValue JS_NewArrayBufferCopy(JSContext ctx, byte *buf, size_t len);
public static extern JSValue JS_DupValue(JSContext ctx, JSValueConst v);
public static extern JSValue jsb_new_bridge_object(JSContext ctx, JSValue proto, int object_id);
public static extern void JS_FreeValue(JSContext ctx, JSValue v);
public static extern JSValue jsb_new_bridge_value(JSContext ctx, JSValue proto, uint32_t size);
public static extern IntPtr JS_ToCStringLen2(JSContext ctx, out size_t len, [In] JSValue val, [MarshalAs(UnmanagedType.Bool)] bool cesu8);
public static extern JS_BOOL JSB_SetBridgeType(JSContext ctx, JSValue obj, int32_t type);
public static IntPtr JS_ToCStringLen(JSContext ctx, out size_t len, JSValue val) { return(JS_ToCStringLen2(ctx, out len, val, false)); }
public static extern JSPayloadHeader JSB_FreePayload(JSContext ctx, JSValue val);
public static extern int JS_ToInt64(JSContext ctx, out int64_t pres, JSValueConst val);