export type StaleResultsState = { /** Snapshot kept until Pagefind replaces the live list. */ holding: boolean; /** Live-result href fingerprint when the snapshot was taken. */ capturedFingerprint: string; /** True once Pagefind shows a searching state while holding. */ sawSearchingWhileHolding: boolean; }; export declare const INITIAL_STALE_RESULTS_STATE: StaleResultsState; /** Show the last snapshot while a new query is in flight and Pagefind cleared the live list. */ export declare function shouldShowStaleResults(hasStaleSnapshot: boolean, hasLiveResults: boolean, holding: boolean, queryReady: boolean, idle: boolean, zeroResults: boolean): boolean; export declare function liveResultsFingerprint(root: Element): string; /** Drop the snapshot when the field resets or a completed search settles. */ export declare function shouldDiscardStaleResults(idle: boolean, zeroResults: boolean, queryReady: boolean): boolean; export declare function beginStaleResultsHold(state: StaleResultsState, liveFingerprint: string): StaleResultsState; export declare function resolveStaleResultsHold(state: StaleResultsState, hasLiveResults: boolean, liveFingerprint: string, isSearching: boolean, discard: boolean): StaleResultsState; /** Mount outside Pagefind’s Svelte-managed results block so loading toggles do not drop it. */ export declare function ensureStaleResultsHost(root: Element): HTMLElement | null; export declare function captureStaleResults(root: Element): boolean; export declare function clearStaleResults(root: Element): void; export declare function syncStaleResults(root: Element, show: boolean, discard: boolean): void;