import { type ChildProcess, type SpawnOptions } from "node:child_process";
interface ExecCommandOptions {
    cwd?: string;
    env?: NodeJS.ProcessEnv;
    encoding?: BufferEncoding;
    timeout?: number;
    maxBuffer?: number;
}
interface ExecCommandResult {
    stdout: string;
    stderr: string;
}
export declare function spawnProcess(command: string, args: string[], options?: SpawnOptions): ChildProcess;
export declare function execCommand(command: string, args: string[], options?: ExecCommandOptions): Promise<ExecCommandResult>;
export declare function platformShell(): {
    command: string;
    flag: string[];
};
export declare function platformBash(): {
    command: string;
    flag: string[];
};
export {};
//# sourceMappingURL=spawn.d.ts.map