import { type CodexAppServerReadClient } from "./codex-app-server-read-client.js"; import type { CodexPaginatedThreadBinding } from "./codex-paginated-thread-facts.js"; import { type CodexPaginatedTaskAnchor, type CodexPaginatedTaskSnapshot } from "./codex-paginated-task.js"; import type { TerminalRuntimeIdentity } from "./terminal-agent-adapter.js"; import type { CodexAsyncQuestionDurableEvidence } from "./codex-async-question-adapter.js"; type ReadClient = Pick; type Connect = (options: { codexHome: string; expectedServerVersion: string; compatibility: "read_contract"; }) => Promise; export declare function readCodexPaginatedAsyncQuestions(runtime: TerminalRuntimeIdentity): Promise; export declare class CodexLegacyThreadHistoryError extends Error { readonly threadId: string; constructor(threadId: string); } /** Bounded reads never resume, subscribe to, create, or mutate native threads. */ export declare function readCodexPaginatedTaskSnapshot(input: { codexHome: string; threadId: string; serverVersion: string; boundaryTurnId?: string; connect?: Connect; }): Promise; export declare function captureCodexPaginatedTaskAnchor(input: { binding: CodexPaginatedThreadBinding; requestHash?: string; now: Date; connect?: Connect; }): Promise; export {};