/**
 * CodexRuntime — Codex CLI runtime adapter.
 *
 * Spawns the `codex` CLI subprocess and bridges AgentTask / AgentResult.
 */
import type { AgentRuntime, AgentRunResult, AgentResult, AgentTask, RuntimeCapabilities, RuntimeHealth } from "./agent-runtime.js";
import type { ContextCapsule } from "./context-capsule.js";
export interface CodexRuntimeOptions {
    bin?: string;
    cwd?: string;
    model?: string;
    timeoutMs?: number;
    contextWindow?: number;
    reservedOutputTokens?: number;
    safetyMarginTokens?: number;
}
export declare class CodexRuntime implements AgentRuntime {
    readonly id = "codex-cli";
    readonly kind = "cli";
    readonly priority = 60;
    readonly capabilities: RuntimeCapabilities;
    private readonly cwd;
    private readonly bin;
    private readonly model;
    private readonly timeoutMs;
    private readonly contextWindow;
    private readonly reservedOutputTokens;
    private readonly safetyMarginTokens;
    constructor(options?: CodexRuntimeOptions);
    supports(capsule: ContextCapsule): boolean;
    health(): Promise<RuntimeHealth>;
    runNode(capsule: ContextCapsule, signal: AbortSignal): Promise<AgentRunResult>;
    execute(task: AgentTask): Promise<AgentResult>;
    private buildPrompt;
}
