/** * Options for executing shell commands. */ export interface ExecOptions { /** AbortSignal to cancel the command */ signal?: AbortSignal; /** Timeout in milliseconds */ timeout?: number; /** Working directory */ cwd?: string; } /** * Result of executing a shell command. */ export interface ExecResult { stdout: string; stderr: string; /** Process exit code; `-1` when execution was aborted or no exit code was available. */ code: number; /** True when the process was killed by `timeout` or `signal`. */ killed: boolean; } /** * Execute a shell command and return stdout/stderr/code. * Supports timeout and abort signal. */ export declare function execCommand(command: string, args: string[], cwd: string, options?: ExecOptions): Promise;