import { codexProcessIncarnationForPid } from "./codex-process-incarnation.js"; import type { TerminalAgentBridge } from "./terminal-agent-bridge.js"; import type { TerminalControlRef } from "./terminal-control-ref.js"; import type { CodexPaginatedThreadBinding } from "./codex-paginated-thread-facts.js"; export type { CodexPaginatedThreadBinding } from "./codex-paginated-thread-facts.js"; export declare function codexPaginatedHome(configured?: string): string; /** A dispatched /status whose closed UI transaction was not proven must not be followed by Send. */ export declare class CodexPaginatedForegroundInspectionError extends Error { readonly doNotRetry = true; constructor(cause: unknown); } export declare function captureCodexPaginatedThreadBinding(input: { bridge: Pick; terminalControl: TerminalControlRef; pid: number; agentVersion: string; codexHome?: string; allowWorking?: boolean; now?: () => Date; sleep?: (milliseconds: number) => Promise; incarnation?: typeof codexProcessIncarnationForPid; resolveBackendVersion?: (request: { codexHome: string; agentVersion: string; }) => Promise; }): Promise; export declare function assertCodexPaginatedProcess(binding: CodexPaginatedThreadBinding): void;