export type CodexPaginatedVersion = "0.158.0" | "0.159.0" | "0.159.2" | "0.159.3" | "0.160.0" | "0.162.1"; export type CodexPaginatedBackendVersion = CodexPaginatedVersion; /** Versions whose paginated history and physical TUI binding are verified together. */ export declare function isCodexPaginatedVersion(value: unknown): value is CodexPaginatedVersion; /** * Eligibility to try the closed paginated read contract, not proof of support. * The actual styled Composer, command popup, fresh status identity and backend * response must still pass their independent checks. Never use this for native * interaction writes, which require an audited physical/server version pair. */ export declare function isCodexPaginatedReadCandidate(value: unknown): value is string; /** Audited physical TUI and shared app-server pairs; unknown patch versions fail closed. */ export declare function isAuditedCodexPaginatedServerPair(agentVersion: unknown, serverVersion: unknown): serverVersion is CodexPaginatedBackendVersion; /** * Stable behavior contract used for a complete x.y.z Codex version that * AKK has not regression-tested yet. Exact profiles remain useful as evidence * of verification, but are not a runtime allowlist. */ export declare const CODEX_GENERIC_RUNTIME_BEHAVIOR_PROFILE = "codex-tui-generic-v1"; /** * Known protocol changes are different from a merely unverified release. * These versions create durable TUI threads with paginated history, including * under --no-daemon. Their shared server can also own the history instead of * the physical TUI process, so the legacy rollout/FD protocol cannot prove a * managed task or thread transition. */ export declare function codexUnsupportedDurableHistoryWarning(agentVersion: string | undefined): string | undefined; /** Paginated Watch support does not implement legacy managed thread transitions. */ export declare function codexThreadLifecycleHistoryWarning(agentVersion: string | undefined): string | undefined; export interface CodexRuntimeCompatibilityProfile { readonly behaviorProfile: string; readonly versionCompatibility: "verified" | "unverified"; readonly compatibilityWarning?: string; } export declare function codexLifecycleBehaviorProfile(agentVersion: string | undefined): string | undefined; /** True only for a complete x.y.z version shared by runtime and artifacts. */ export declare function isValidCodexAgentVersion(agentVersion: string | undefined): agentVersion is string; /** * Select the runtime behavior profile without turning the verified-version * registry into a feature gate. */ export declare function codexRuntimeCompatibilityProfile(agentVersion: string | undefined): CodexRuntimeCompatibilityProfile | undefined; /** A shared strict fullscreen status grammar, with the actual TUI version pinned. */ export declare function codexNativeInspectionCompatibilityProfile(agentVersion: string | undefined): CodexRuntimeCompatibilityProfile | undefined; export declare function codexRuntimeLifecycleBehaviorProfile(agentVersion: string | undefined): string | undefined; export declare function supportedCodexLifecycleVersions(): readonly string[];