import { readCodexPaginatedTaskSnapshot } from "./codex-paginated-observation.js"; import { type CodexPaginatedTaskAnchor, type CodexPaginatedTaskCheckpoint } from "./codex-paginated-task.js"; import type { TerminalAgentBridge } from "./terminal-agent-bridge.js"; import type { TerminalRuntimeIdentity } from "./terminal-agent-adapter.js"; import type { TerminalControlRef } from "./terminal-control-ref.js"; import type { TerminalWatch } from "./terminal-watch-record.js"; import { type TerminalWatchObservation } from "./terminal-watch-service.js"; import type { CodexAsyncQuestionDurableEvidence } from "./codex-async-question-adapter.js"; export { isPaginatedSendWatch } from "./terminal-watch-record.js"; export declare function paginatedWatchProcessMatches(terminal: Record, anchor: CodexPaginatedTaskAnchor): boolean; /** The caller holds the terminal input lease during this closed status probe. */ export declare function capturePaginatedWatchAnchor(input: { terminal: Record; bridge: TerminalAgentBridge; codexHome?: string; requestHash?: string; now: () => Date; }): Promise; export declare function observePaginatedWatch(input: { watch: TerminalWatch; observedAt: string; terminalMatches: boolean; terminalAvailable: boolean; questionnaire: (checkpoint: CodexPaginatedTaskCheckpoint, questions: readonly CodexAsyncQuestionDurableEvidence[], allowResponses: boolean) => TerminalWatchObservation | undefined; blockingQuestionnaire?: (checkpoint: CodexPaginatedTaskCheckpoint) => Promise; readSnapshot?: typeof readCodexPaginatedTaskSnapshot; }): Promise; /** Reversible navigation happens before the one-shot answer reservation. */ export declare function refreshPaginatedResponseForeground(bridge: TerminalAgentBridge, control: TerminalControlRef, runtime: TerminalRuntimeIdentity, now: () => Date): Promise;