import type { RefreshNotificationMessage } from './refresh-notifications.ts'; import type { AnalysisServerRuntime } from './runtime-env.ts'; export interface AnalysisClientBrowserRefreshNotification extends RefreshNotificationMessage { runtime: AnalysisServerRuntime; runtimeKey: string; } export { onAnalysisClientBrowserRefreshVersionChange as onAnalysisClientRefreshVersionChange, } from './browser-runtime.ts'; export declare function getAnalysisClientRefreshVersion(currentRuntimeKey: string | undefined, runtime?: AnalysisServerRuntime): string; export declare function getAnalysisClientRefreshCursor(currentRuntimeKey: string | undefined, runtime?: AnalysisServerRuntime): number; export declare function notifyAnalysisClientRefreshVersionChanged(currentRuntimeKey: string | undefined): void; export declare function hydrateRefreshStateFromSharedAnalysisBrowserVersion(currentRuntimeKey: string | undefined): void; export declare function getLatestRefreshCursorForRuntime(runtimeKey: string): number; export declare function syncLatestRefreshCursorForRuntime(currentRuntimeKey: string | undefined, runtimeKey: string, options?: { notify?: boolean; }): void; export declare function setLatestRefreshCursorForRuntime(currentRuntimeKey: string | undefined, runtimeKey: string, value: number, options?: { notify?: boolean; }): void; export declare function bumpLatestRefreshCursorForRuntime(currentRuntimeKey: string | undefined, runtimeKey: string, value: number, options?: { notify?: boolean; }): void; export declare function bumpAnalysisClientRefreshInvalidationEpoch(runtimeKey?: string): void; export declare function onAnalysisClientBrowserRefreshNotification(listener: (message: AnalysisClientBrowserRefreshNotification) => void): () => void; export declare function emitAnalysisClientBrowserRefreshNotification(options: { runtime: AnalysisServerRuntime; runtimeKey: string; refreshCursor?: number; invalidationPaths?: readonly string[]; }): void; export declare function notifyAnalysisClientBrowserRefreshNotification(message: AnalysisClientBrowserRefreshNotification): void; export declare function hasAnalysisClientBrowserRefreshListeners(): boolean; export declare function hasConnectedAnalysisServerClientRuntime(runtimeKey: string): boolean; export declare function rememberConnectedAnalysisServerClientRuntime(runtimeKey: string): void; export declare function resetLatestAnalysisClientRefreshCursor(currentRuntimeKey: string | undefined): void; export declare function resetAnalysisClientRefreshState(currentRuntimeKey: string | undefined, options?: { clearListeners?: boolean; resetInvalidationEpoch?: boolean; }): void; export declare function setAnalysisClientRefreshVersionForTests(version: string, currentRuntimeKey: string | undefined): void;