import type { QuickJSContext, QuickJSHandle } from 'quickjs-emscripten-core'; export type Options = { ctx: QuickJSContext; /** marshal returns handle and boolean indicates that the handle should be disposed after use */ marshal: (target: unknown) => [QuickJSHandle, boolean]; find: (handle: QuickJSHandle) => unknown | undefined; pre: (target: T, handle: QuickJSHandle) => T | undefined; custom?: Iterable<(obj: QuickJSHandle, ctx: QuickJSContext) => any>; }; export declare function unmarshal(handle: QuickJSHandle, options: Options): any; export default unmarshal;