export type CommandExecutionOptions = { cwd: string; timeoutMs?: number; signal?: AbortSignal; }; export type CommandExecutionResult = { stdout: string; stderr: string; code: number; killed: boolean; }; export type CommandExecutor = { exec( command: string, args: string[], options: CommandExecutionOptions, ): Promise; };