import type { ExecutorKind } from "./executors.js"; import type { CodexRolloutAcceptanceIdentity } from "./terminal-submission-acceptance.js"; import { type TerminalControlRef } from "./terminal-control-ref.js"; import { type TerminalWatch, type TerminalWatchAnchor, type TerminalWatchCurrentInteraction, type TerminalWatchTerminalIdentity, type TerminalActivityState } from "./terminal-watch-store.js"; import type { TerminalWatchCliOptions, UserExplicitFallbackWatchTarget, PreparedUserExplicitFallbackWatch, ExactTerminalWatchObservation, TerminalWatchCliDependencies } from "./terminal-watch-cli-contract.js"; export declare function assertSameUserExplicitFallbackTerminal(expected: UserExplicitFallbackWatchTarget, observed: Record): void; export declare function assertPreparedFallbackTerminal(prepared: PreparedUserExplicitFallbackWatch, observed: Record): void; export declare function exactTerminalForWatch(terminalId: string, options: TerminalWatchCliOptions, dependencies: TerminalWatchCliDependencies): Promise>; export declare function bestEffortBindingTokenForWatch(terminal: Record): { token: string; warning?: string; }; export declare function terminalActivityState(terminal: Record): TerminalActivityState; export declare function sameManualWatchTarget(watch: TerminalWatch, agent: ExecutorKind, terminal: TerminalWatchTerminalIdentity, anchor: TerminalWatchAnchor): boolean; export declare function safeDiagnostic(error: unknown): string; export declare function terminalControlForWatch(terminal: Record): TerminalControlRef; export declare function terminalWatchCandidateMatchesLiveContext(watch: TerminalWatch, terminal: Record): boolean; export declare function currentTerminalForWatch(watch: TerminalWatch, options: TerminalWatchCliOptions, dependencies: TerminalWatchCliDependencies): Promise; export declare function terminalMatchesWatch(terminal: Record, watch: TerminalWatch): boolean; export type TerminalActivityWatchIdentityMatch = "match" | "mismatch" | "unavailable"; export declare function terminalActivityWatchIdentityMatch(terminal: Record, watch: TerminalWatch): TerminalActivityWatchIdentityMatch; export declare function terminalMatchesUserExplicitFallbackWatch(terminal: Record, watch: TerminalWatch): boolean; export declare function terminalWatchIdentity(terminal: Record, bindingToken: string): TerminalWatchTerminalIdentity; export declare function codexIdentity(terminal: Record): CodexRolloutAcceptanceIdentity; export declare function codexIdentityForWatch(watch: TerminalWatch): CodexRolloutAcceptanceIdentity; export declare function terminalAgent(terminal: Record): ExecutorKind; export declare function terminalWorkspace(terminal: Record): string; export declare function requiredWatchId(value: unknown): string; export declare function requiredString(value: unknown, label: string): string; export declare function requiredSha256(value: unknown, label: string): string; export declare function requiredTimestamp(value: unknown, label: string): string; export declare function parseWatchInteractionResponse(value: unknown): unknown; export declare function assertWatchControllerSession(watch: TerminalWatch, requestedValue: unknown): void; export declare function requiredExecutableWatchInteraction(watch: TerminalWatch, interactionId: string, expectedFingerprint: string): TerminalWatchCurrentInteraction; export declare function positiveInteger(value: unknown, label: string): number; export declare function positiveMinutes(value: unknown, fallback: number): number; export declare function sha256(value: unknown): string;