import { SandboxImpl } from "./sandbox.js"; //#region src/sandbox/worker-threads.d.ts /** * Worker pool sizing options. Reserved for the post-MVP warm-pool * implementation; the v0.1 adapter spawns a fresh worker per call. */ interface WorkerPoolOptions { readonly min?: number; readonly max?: number; readonly idleTimeoutMs?: number; } /** * Options for `createWorkerThreadsSandbox(...)`. * * @stable */ interface WorkerThreadsSandboxOptions { /** * Default wall-clock timeout, in milliseconds. Per-call values from * `SandboxRunOptions.timeoutMs` override this default. */ readonly defaultTimeoutMs?: number; /** * Grace period (ms) after `signal.abort()` before the worker is * forcibly terminated. Defaults to 100 ms. */ readonly abortGraceMs?: number; /** * Default block on outbound network. Per-call values from * `SandboxRunOptions.allowNetwork === false` are honoured first. */ readonly noNetwork?: boolean; /** * Default block on filesystem access. Per-call values from * `SandboxRunOptions.allowFs === false` are honoured first. */ readonly noFilesystem?: boolean; /** Optional WARN logger. */ readonly warn?: (message: string) => void; /** Reserved for a post-MVP warm-pool implementation. */ readonly pool?: WorkerPoolOptions; } /** * Construct a `WorkerThreadsSandbox` instance. * * @stable */ declare function createWorkerThreadsSandbox(opts?: WorkerThreadsSandboxOptions): SandboxImpl; //#endregion export { WorkerPoolOptions, WorkerThreadsSandboxOptions, createWorkerThreadsSandbox }; //# sourceMappingURL=worker-threads.d.ts.map