export interface SpawnResult { status: number | null; stdout: string; stderr: string; } export interface SpawnWithResultOptions { cwd: string; maxBuffer?: number; verbose?: boolean; env?: NodeJS.ProcessEnv; shell?: boolean; timeoutMs?: number; } /** Spawns a process and returns status code + output. */ export declare function spawnWithResult(command: string, commandArguments: string[], options: SpawnWithResultOptions): Promise; /** Spawns a process and returns stdout, rejecting when the command fails. */ export declare function spawnWithStdout(command: string, commandArguments: string[], options: SpawnWithResultOptions): Promise; /** Spawns a process and returns stdout as a Buffer, rejecting on failure. */ export declare function spawnWithBuffer(command: string, commandArguments: string[], options: SpawnWithResultOptions): Promise;