interface SandboxCommandResult { exitCode: number; stdout: string; stderr: string; } export interface RunInSandboxOptions { cwd?: string; abortSignal?: AbortSignal; } export interface SandboxCommandTarget { sandbox?: { provider?: string; executeCommand?: (command: string, args?: string[], options?: { cwd?: string; abortSignal?: AbortSignal; }) => Promise; processes?: { spawn: (command: string, options?: { cwd?: string; abortSignal?: AbortSignal; }) => Promise<{ wait: () => Promise; }>; }; }; } export declare function runInSandbox(workspace: SandboxCommandTarget, command: string, cwdOrOptions?: string | RunInSandboxOptions): Promise<{ exitCode: number; stdout: string; stderr: string; }>; export {};