import type { ExecResult, ExecutorInput } from '../types/index.js'; import type { CodexEvent } from './shared.js'; export { extractCodexFinalOutput, extractCodexProtocolError, extractCodexStopReason, extractCodexUsage, sumCodexElapsed, } from './codex-protocol.js'; export declare function isolateCodexCwd(allowedSkills: string[] | undefined, cwd: string | null | undefined, executorName?: string): void; export interface CodexJsonlParseResult { events: CodexEvent[]; malformedLineCount: number; } export declare function parseCodexJsonl(stdout: string): CodexJsonlParseResult; export declare function buildCodexArgs({ model, cwd, prompt }: { model: string; cwd?: string | null; prompt: string; }): string[]; export declare function codexCliExecutor({ model, system, prompt, cwd, skillDir, timeoutMs, allowedSkills, verbose }: ExecutorInput): Promise;