import type { TSchema } from "typebox"; import type { AuthProfile } from "../auth/auth-profile.js"; import type { Backend, ProviderErrorClassification, ProviderErrorMetadata, SessionMetaInputs, SpawnConfig, StructuredSource } from "../backend.js"; /** Codex auth adaptation, including its existing spawn-time pre-auth environment channel. */ export declare const codexAuthProfile: AuthProfile; export declare class CodexBackend implements Backend { readonly authProfile: AuthProfile; readonly id: "codex"; constructor(authProfile?: AuthProfile); readonly customCapabilities: { readonly namespace: "@automatalabs/codex-acp"; readonly gatedKeys: readonly string[]; }; /** Turn on codex-acp's negotiated typed-session-failures extension at `initialize` (see * typed-failures.ts). Truthful: SessionHandle consumes BOTH delivery channels the server opens * in response — the terminal failure on `PromptResponse._meta` and the asynchronous one on * `session_info_update`. An older codex-acp ignores the block and keeps its legacy behavior. */ readonly clientCapabilityMeta: Readonly>; /** The LEGACY (thrown) provider-wall channel. Still load-bearing with the typed extension * negotiated: it classifies every rejection the typed channel does not cover — an older * codex-acp, and any `session/prompt` rejection raised outside a turn's terminal-failure path * (the server converts only process-exit / unexpected throws into typed responses). The typed * channel's own equivalents are mapped by `mapTypedSessionFailure`. */ classifyProviderError(error: unknown, metadata?: ProviderErrorMetadata): ProviderErrorClassification | undefined; spawnConfig(): SpawnConfig; sessionMeta(_schema: TSchema | undefined, inputs?: SessionMetaInputs): Record | undefined; promptMeta(schema: TSchema | undefined): Record | undefined; nativeStructured(source: StructuredSource): unknown; } export declare const codexBackendDefinition: import("./define.js").BuiltinBackendDefinition<"codex">; //# sourceMappingURL=codex.d.ts.map