/** * Cross-runtime spawn utilities * Works with both Bun and Node.js */ export interface SpawnOptions { env?: Record; cwd?: string; stdin?: 'inherit' | 'pipe' | 'ignore'; stdout?: 'inherit' | 'pipe' | 'ignore'; stderr?: 'inherit' | 'pipe' | 'ignore'; } export interface SpawnResult { exitCode: number; stdout?: string; stderr?: string; } /** * Spawn a process and wait for it to complete * Returns exit code (inherits stdio by default) */ export declare function spawn(cmd: string[], opts?: SpawnOptions): Promise; /** * Spawn a process and capture its output * Returns stdout/stderr as strings */ export declare function spawnCapture(cmd: string[], opts?: Omit): Promise; /** * Check if a command exists in PATH */ export declare function commandExists(cmd: string): Promise; /** * Get the version of a command (assumes --version flag) */ export declare function getCommandVersion(cmd: string): Promise; //# sourceMappingURL=spawn.d.ts.map