export interface CommandResult { readonly command: string; readonly args: readonly string[]; readonly exitCode: number; readonly stdout: string; readonly stderr: string; } export interface RunCommandOptions { readonly cwd: string; readonly signal?: AbortSignal | undefined; readonly maxOutputBytes?: number | undefined; } export type CommandRunner = (command: string, args: readonly string[], options: RunCommandOptions) => Promise; export declare class CommandInvocationError extends Error { readonly command: string; readonly code: string | undefined; constructor(command: string, message: string, code: string | undefined, options?: ErrorOptions); } export declare class CommandCancelledError extends Error { constructor(command: string); } /** * Node kills the child once its output passes `maxBuffer`. That is a size limit, not a * broken executable, so it gets its own type instead of looking like a failed spawn. */ export declare class CommandOutputLimitError extends Error { readonly command: string; readonly maxOutputBytes: number; constructor(command: string, maxOutputBytes: number, options?: ErrorOptions); } export declare const runCommand: CommandRunner; export declare function runChecked(runner: CommandRunner, command: string, args: readonly string[], options: RunCommandOptions, failureContext: string): Promise; //# sourceMappingURL=process.d.ts.map