export interface Invocation { commandLine: string[]; cwd?: string; exitCode?: number; stdout?: string; /** * Only match a prefix of the command (don't care about the details of the arguments) */ prefix?: boolean; /** * Run this function as a side effect, if present */ sideEffect?: () => void; } export declare function mockSpawn(...invocations: Invocation[]): void;