import { spawn as nodeSpawn } from "node:child_process"; import type { NormalizedDriverMessage } from "./messages.js"; import type { DriverEventEnvelope, RuntimeDriver, RuntimeDriverRunHandle, RuntimeDriverRunInput } from "../types.js"; type SpawnFn = typeof nodeSpawn; export interface CodexCliDriverOptions { spawn?: SpawnFn; executable?: string; } export declare function buildCodexCliCommand(input: { prompt: string; cwd: string; model?: string; appendSystemPrompt?: string; resumeSessionId?: string; securityMode?: RuntimeDriverRunInput["securityMode"]; /** Native OpenAI reasoning_effort vocabulary; runtime driver folds before calling. */ reasoningEffort?: "minimal" | "low" | "medium" | "high"; }): string[]; export declare function parseCodexCliEvent(event: unknown): NormalizedDriverMessage | null; export declare class CodexCliDriver implements RuntimeDriver { readonly name: "codex-cli"; private readonly spawnFn; private readonly executable; constructor(options?: CodexCliDriverOptions); run(input: RuntimeDriverRunInput, onEventRaw: (event: DriverEventEnvelope) => Promise | void): RuntimeDriverRunHandle; } export {};