import { SandboxCode, SandboxImpl } from "./sandbox.js"; //#region src/sandbox/none.d.ts /** * Direct caller for `code.kind === 'handler'`. The handler is looked * up in the supplied registry; built-in trusted tools register their * handlers at startup. * * @stable */ type NoneSandboxHandler = (input: TInput, signal: AbortSignal | undefined) => Promise | TOutput; /** * Options for `NoneSandbox`. Hosting code passes a registry of * handlers; lookups are by `module + export` for `'handler'` codes * and by `'inline'` key for `'source'` / `'file'` codes (which the * adapter rejects - directly executing JS source bypasses the trust * tier the user explicitly opted out of). * * @stable */ interface NoneSandboxOptions { /** * Resolver for `code.kind === 'handler'` invocations. The framework * default registers built-in trusted tool handlers at startup. */ readonly resolveHandler: (code: Extract) => NoneSandboxHandler | undefined; } /** * Construct a `NoneSandbox` instance. * * @stable */ declare function createNoneSandbox(opts: NoneSandboxOptions): SandboxImpl; //#endregion export { NoneSandboxHandler, NoneSandboxOptions, createNoneSandbox }; //# sourceMappingURL=none.d.ts.map