import { type AdapterCredential, type AdapterMcpContext, CliAdapter, type CliProgressEvent, type CliUsageSnapshot, type OneshotSpec, type ParseResult, type SpawnDescriptor } from './base.js'; import { type PermissionCapabilities } from '../permission-policy.js'; export declare const CODEX_MCP_TRANSPORTS: readonly ["stdio", "streamable_http"]; export declare class InvalidMcpTransportError extends Error { readonly serverKey: string; constructor(message: string, serverKey: string); } export declare function validateCodexMcpServers(config: unknown, configPath: string): void; export declare class CodexCliAdapter extends CliAdapter { #private; static cliType: string; constructor(); cliUpdate(): { args: string[]; label: string; } | null; updatePackage(): string | null; resolveBin(configured?: string | null): string; harnessKeys(): ReadonlyArray<'system_prompt_append' | 'model' | 'permission_mode'>; permissionCapabilities(): PermissionCapabilities; buildOneshotSpawn({ rolePrompt, taskText, model, mcpAttribution, cwd, cliHomeDir, harness, permission, }: OneshotSpec): SpawnDescriptor; parseStdoutLine(line: string): ParseResult; collectOneshotResult(lines: string[]): string | null; parseProgressEvent(raw: any): CliProgressEvent | null; extractUsage(raw: any): CliUsageSnapshot | null; listModels(): Promise; configDirEnv(): string; authEnvKeys(): string[]; prepareCliHome(cliHomeDir: string, credential?: AdapterCredential | null, mcp?: AdapterMcpContext | null): Promise<{ extraEnv: Record; }>; }