export declare function resolveCliEntry(): string; export interface ChildRunSpec { cwd: string; task: string; timeoutMs?: number; } export interface ChildSpawnResult { cwd: string; exitCode: number | null; stdout: string; stderr: string; timedOut?: boolean; spawnError?: string; } /** * Probe the CLI binary for a successful --version response. * Returns true if the entry file responds with exitCode 0, false otherwise. * Never throws. */ export declare function probeCliVersion(cliEntry: string): Promise; export declare class ChildRunner { /** * Optional override for the CLI entry path. * Production code leaves this undefined (defaults to resolveCliEntry()). * Tests inject the stub fixture path via the constructor to avoid * requiring a built dist/cli/index.js during unit testing. */ private readonly _cliEntry?; /** * Optional override for the Node.js binary path. * Production code leaves this undefined (defaults to process.execPath). * Tests may inject a bad path to exercise the spawn-failure / ENOENT path. */ private readonly _nodeBin?; constructor(options?: { cliEntry?: string; nodeBin?: string; }); /** * Spawn one `agent-bober run ` child process in spec.cwd. * Uses process.execPath (the current Node binary) + the parent's own * dist/cli/index.js — never a bare PATH lookup. * * Never throws: spawn errors are captured in spawnError. */ run(spec: ChildRunSpec): Promise; } //# sourceMappingURL=runner.d.ts.map