import type { QuickJSContext, QuickJSHandle } from 'quickjs-emscripten-core'; export default function unmarshalPromise(ctx: QuickJSContext, handle: QuickJSHandle, /** marshal returns handle and boolean indicates that the handle should be disposed after use */ marshal: (value: unknown) => [QuickJSHandle, boolean], preUnmarshal: (target: T, handle: QuickJSHandle) => T | undefined): Promise | undefined;