import { f as Sandbox } from "./types-Bv6I2U1c.mjs"; import { o as SandboxProvider } from "./provider-DOBErkBO.mjs"; //#region src/core/sandbox.d.ts interface CreateSandboxOptions> { provider: TProvider; cwd?: string; env?: Readonly>; timeout?: number; signal?: AbortSignal; } type RawOf = TProvider extends SandboxProvider ? TRaw : never; /** * Creates a normalized sandbox. Prefer `await using` so cleanup runs when the scope exits. */ declare function createSandbox>(options: CreateSandboxOptions): Promise>>; /** * Runs a callback with a sandbox and stops it afterward. * * Prefer `await using` with `createSandbox()` in new code. This helper remains useful for * callback-style code and runtimes that do not parse explicit resource management syntax. */ declare function withSandbox, TResult>(options: CreateSandboxOptions, callback: (sandbox: Sandbox>) => TResult | Promise): Promise; //#endregion export { createSandbox as n, withSandbox as r, CreateSandboxOptions as t }; //# sourceMappingURL=sandbox-DdEqoXJF.d.mts.map