export interface RunProcessOptions { args: string[]; timeout?: number; maxBuffer?: number; signal?: AbortSignal; env?: Record; cwd?: string; /** Optional string to write to the child's stdin. */ stdin?: string; /** Optional callback for live stdout chunks — enables incremental output * display (e.g. the TUI shows a long-running command's output as it * arrives, not just at the end). */ onStdoutChunk?: (chunk: string) => void; } export interface RunProcessResult { stdout: string; stderr: string; exitCode: number; } export declare class ProcessError extends Error { readonly exitCode: number; readonly stdout: string; readonly stderr: string; readonly timedOut: boolean; constructor(exitCode: number, stdout: string, stderr: string, timedOut?: boolean); } export declare function runProcess(cmd: string, opts: RunProcessOptions): Promise; //# sourceMappingURL=run-process.d.ts.map