import { type ChildProcess, spawn } from "child_process"; import { CommandToRun } from "../types"; export declare const TEARDOWN_TRUNCATED_EXIT_CODE = 124; export declare function getCommandFromString(command: string): { command: string; args: string[]; }; export declare function runTestsForCmd({ command, args, env }: CommandToRun, cwd: string, options?: { stdout?: NodeJS.WritableStream; stderr?: NodeJS.WritableStream; }): Promise<{ hasTestPassed: boolean; wasCancelled: boolean; }>; export declare function spawnCmd(command: string, args: string[], options: { cwd: string; envOverrides: Record; captureOutput: boolean; throwOnError: boolean; stdout?: NodeJS.WritableStream; stderr?: NodeJS.WritableStream; onSpawn?: (proc: ChildProcess) => void; }): Promise<{ code: number; output?: string; }>; export declare function createShutdownHandler(proc: ReturnType, options?: { graceMs?: number; }): (signal: "SIGINT" | "SIGTERM") => Promise; export declare function getChildProcessGraceMs(): number; //# sourceMappingURL=cmd.d.ts.map