import type { ExecResult, ExecutorInput } from '../types/index.js';
import type { CodexEvent } from './shared.js';
export declare function isolateCodexCwd(allowedSkills: string[] | undefined, cwd: string | null | undefined, executorName?: string): void;
export declare function extractCodexUsage(events: CodexEvent[]): {
    input: number;
    cached: number;
    output: number;
};
export declare function extractCodexFinalOutput(events: CodexEvent[]): string;
export declare function extractCodexStopReason(events: CodexEvent[]): string;
export declare function sumCodexElapsed(resultEvents: CodexEvent[], wallClock: number): number;
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<ExecResult>;
//# sourceMappingURL=codex-cli.d.ts.map