/**
 * Codex Cloud provider -- wraps the `codex` CLI for cloud dispatch.
 *
 * Delegates to `codex cloud exec/status/list` subcommands, parsing their
 * JSON or text output into the unified CloudTask format. Streaming is
 * emulated via polling since Codex Cloud lacks an SSE endpoint.
 */
import type { CloudProvider, CloudTask, CloudTaskStatus, CloudEvent, DispatchOptions, ProviderCapabilities } from './types.js';
export declare class CodexCloudProvider implements CloudProvider {
    id: "codex";
    name: string;
    targetKind: "env";
    private defaultEnv?;
    constructor(config?: {
        env?: string;
    });
    capabilities(): ProviderCapabilities;
    dispatch(options: DispatchOptions): Promise<CloudTask>;
    status(taskId: string): Promise<CloudTask>;
    list(filter?: {
        status?: CloudTaskStatus;
    }): Promise<CloudTask[]>;
    stream(taskId: string): AsyncIterable<CloudEvent>;
    cancel(_taskId: string): Promise<void>;
    message(_taskId: string, _content: string): Promise<void>;
}
/** Extract a task ID from codex CLI output (JSON field, key:value line, or UUID pattern). */
export declare function extractTaskId(output: string): string | undefined;
