export declare const ACTIVE_RUN_STATE_EVENT = "agent-chat:active-run-state-change"; export interface ActiveRunState { threadId: string; runId: string; tabId?: string; turnId?: string; lastSeq: number; lastProgressSeq?: number; lastProgressObservedAt?: number; activityTool?: string | null; } export interface PendingTurnState { threadId: string; turnId: string; tabId?: string; } export declare function setActiveRun(state: ActiveRunState): void; export declare function getActiveRun(): ActiveRunState | null; export declare function updateActiveRunSeq(threadId: string, runId: string, seq: number, isProgress?: boolean): void; export declare function hasRecentActiveRunProgress(threadId: string | null | undefined, runId: string | null | undefined, thresholdMs: number, now?: number): boolean; export declare function updateActiveRunActivity(toolName: string | null | undefined): void; export declare function getActiveRunActivityTool(threadId: string, runId: string): string | null; export declare function clearActiveRun(): void; export declare function clearActiveRunIfMatches(threadId: string, runId: string): void; export declare function setPendingTurn(state: PendingTurnState): void; export declare function getPendingTurn(threadId?: string): PendingTurnState | null; export declare function clearPendingTurnIfMatches(threadId: string, turnId?: string): void; export declare function resolveReconnectAfterSeq(threadId: string, runId: string): number;