/** A text-mode command runner: argv in, stdout out. Rejects on a non-zero exit. */ export type RunTextCommand = (args: string[]) => Promise; /** The `child_process.execFile` shape `createCommandRunner` wraps — injectable for tests. */ export type ExecFileText = (command: string, args: string[]) => Promise<{ stdout: string; }>; /** * Builds a `RunTextCommand` bound to a fixed binary. The default `exec` wraps `execFile` via * `promisify` so a test can inject a fake without spawning a real process; `runGh`/`runGit` below * are this factory applied to the two binaries this module cares about. */ export declare function createCommandRunner(command: string, exec?: ExecFileText): RunTextCommand; /** Runs `gh` and returns its stdout. */ export declare const runGh: RunTextCommand; /** Runs `git` and returns its stdout. */ export declare const runGit: RunTextCommand;