import { l as SpawnConfig, o as ExecResult, s as ExecutionContext } from "./types-BibzMDjX.js";

//#region src/contexts/process.d.ts
declare function createProcessContext(config?: SpawnConfig): ExecutionContext;
//#endregion
//#region src/contexts/sandbox.d.ts
interface SandboxProvider {
  name: string;
  spawn: (config: SpawnConfig) => Promise<{
    id: string;
    cwd: string;
  }>;
  exec: (sandboxId: string, command: string, options?: {
    cwd?: string;
    env?: Record<string, string>;
    timeout?: number;
  }) => Promise<ExecResult>;
  readFile: (sandboxId: string, path: string) => Promise<string>;
  writeFile: (sandboxId: string, path: string, content: string) => Promise<void>;
  listFiles: (sandboxId: string, path: string) => Promise<string[]>;
  destroy: (sandboxId: string) => Promise<void>;
}
declare function createSandboxContext(provider: SandboxProvider): ExecutionContext;
//#endregion
export { createSandboxContext as n, createProcessContext as r, SandboxProvider as t };
//# sourceMappingURL=index-C_t8tW_X.d.ts.map