import { spawn } from "node:child_process"; import type { StructuredExecHost } from "./structured-exec-host.js"; import type { SessionSnapshot } from "./types.js"; import type { StructuredRunnerAdapter, StructuredRunnerContext, StructuredRunnerExecution, StructuredRunnerObserver } from "./structured-runner.js"; /** Build the stable CLI contract for a structured Codex turn. */ export declare function buildCodexArgs(session: SessionSnapshot): string[]; /** Owns the Codex CLI process and translates its NDJSON protocol into runner-neutral state. */ export declare class CodexRunner implements StructuredRunnerAdapter { private readonly spawnProcess; private readonly execHost?; constructor(spawnProcess?: typeof spawn, execHost?: StructuredExecHost | undefined); start(context: StructuredRunnerContext, observer: StructuredRunnerObserver): StructuredRunnerExecution; }