export declare const ACTIVE_RUN_STATE_EVENT = "agent-chat:active-run-state-change"; export interface ActiveRunState { threadId: string; runId: string; lastSeq: number; activityTool?: string | null; } export interface PendingTurnState { threadId: string; turnId: string; } export declare function setActiveRun(state: ActiveRunState): void; export declare function getActiveRun(): ActiveRunState | null; export declare function updateActiveRunSeq(seq: number): void; 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; /** Resume reconnect SSE after the last seen event (0 = replay from the start). */ export declare function resolveReconnectAfterSeq(threadId: string, runId: string): number; //# sourceMappingURL=active-run-state.d.ts.map