import { spawn } from "node:child_process"; export type SetupCommandSpec = { command: string; args: string[]; cwd?: string; env?: NodeJS.ProcessEnv; }; export type SetupCommandResult = { code: number; stdout: string; stderr: string; }; export declare function runSetupCommand(spec: SetupCommandSpec, spawnImpl?: typeof spawn): Promise; export declare function joinCommand(spec: SetupCommandSpec): string; export declare function formatCommandFailure(spec: SetupCommandSpec, result: SetupCommandResult): string; export declare function requireCommand(runCommand: (spec: SetupCommandSpec) => Promise, spec: SetupCommandSpec, message: string): Promise;