//#region src/core/types.d.ts declare const providerNames: readonly ["local", "e2b", "daytona", "vercel", "upstash", "box", "railway"]; type ProviderName = (typeof providerNames)[number]; declare const capabilityNames: readonly ["files.read", "files.write", "files.list", "files.remove", "process.run", "process.stream", "process.background", "process.stdin", "process.cancel", "ports.expose", "ports.authenticatedRequest", "snapshot.create", "snapshot.delete", "snapshot.restore", "sandbox.resume", "filesystem.persistent", "image.custom", "network.policy", "process.pty", "compute.gpu"]; type Capability = (typeof capabilityNames)[number]; type CapabilityMode = "filesystem" | "memory" | "template" | "fork" | "public" | "authenticated" | "combined-stream" | "separate-streams" | "ephemeral" | "persistent" | "localhost" | "in-process" | "full" | "native"; type CapabilityMap = Readonly>; type CommandInput = string | { command: string; args?: readonly string[]; }; interface RunOptions { cwd?: string; env?: Readonly>; timeout?: number; signal?: AbortSignal; } interface CommandResult { stdout: string; stderr: string; exitCode: number; success: boolean; signal?: string; durationMs?: number; } type FileValue = string | Uint8Array | ArrayBuffer | Blob | ReadableStream; interface SandboxDirectoryEntry { name: string; path: string; type: "file" | "directory" | "symlink" | "unknown"; size?: number; } interface SandboxFiles { write(path: string, value: FileValue): Promise; read(path: string): Promise; text(path: string): Promise; list(path?: string): Promise; mkdir(path: string): Promise; remove(path: string): Promise; exists(path: string): Promise; } interface ProcessOutputEvent { stream: "stdout" | "stderr"; data: string | Uint8Array; timestamp?: Date; } type ProcessStatus = "starting" | "running" | "exited" | "killed" | "unknown"; interface SandboxProcess { readonly id: string; status(): Promise; output(): AsyncIterable; write(value: string | Uint8Array): Promise; wait(): Promise<{ exitCode: number; }>; kill(signal?: string): Promise; } interface SandboxProcesses { start(command: CommandInput, options?: RunOptions): Promise; } interface ExposedPort { readonly port: number; readonly url: string; readonly public: boolean; readonly authenticated: boolean; request?(path?: string, init?: RequestInit): Promise; toJSON(): Omit; } interface SandboxPorts { expose(port: number): Promise; } interface SandboxSnapshot { readonly id: string; readonly name?: string; readonly mode: CapabilityMode; readonly createdAt?: Date; } interface SandboxSnapshots { create(options?: { name?: string; }): Promise; delete(snapshot: SandboxSnapshot | string): Promise; restore(snapshot: SandboxSnapshot | string): Promise; } interface Sandbox { readonly id: string; readonly provider: ProviderName; readonly cwd: string; readonly capabilities: CapabilityMap; readonly raw: TRaw; readonly files: SandboxFiles; readonly processes: SandboxProcesses; readonly ports: SandboxPorts; readonly snapshots: SandboxSnapshots; run(command: CommandInput, options?: RunOptions): Promise; /** Stops the provider runtime. Repeated calls share the same cleanup operation. */ stop(): Promise; /** Stops the sandbox when an `await using` scope exits. */ [Symbol.asyncDispose](): Promise; } //#endregion export { SandboxProcesses as _, CommandResult as a, capabilityNames as b, ProcessOutputEvent as c, RunOptions as d, Sandbox as f, SandboxProcess as g, SandboxPorts as h, CommandInput as i, ProcessStatus as l, SandboxFiles as m, CapabilityMap as n, ExposedPort as o, SandboxDirectoryEntry as p, CapabilityMode as r, FileValue as s, Capability as t, ProviderName as u, SandboxSnapshot as v, providerNames as x, SandboxSnapshots as y }; //# sourceMappingURL=types-Bv6I2U1c.d.mts.map