import type { ExecutionBudget, SandboxHostFunction } from '../types.js'; import type { QuickJSContext } from 'quickjs-emscripten-core'; /** * Optional adapter for `runInSandbox`'s `setupContext`: exposes named host functions to the * guest as one frozen global — `hostFunctions` by default, or the `globalName` the consumer * chooses. Values cross the boundary as JSON strings — the guest only ever receives copies. * Returns the cleanup callback. */ export declare function setupHostFunctions(context: QuickJSContext, hostFunctions: Record, options?: { globalName?: string; budget?: ExecutionBudget; maxCalls?: number; maxOutputBytes?: number; messages?: { outputTooLarge?: (bytes: number) => string; callLimitExceeded?: (max: number) => string; }; }): () => void; //# sourceMappingURL=setup-host-functions.d.ts.map