import { Annotation, AnnotationId, Settings, Position } from '../types'; /** * Save annotations to LocalStorage */ export declare function saveAnnotations(annotations: Map): boolean; /** * Load annotations from LocalStorage */ export declare function loadAnnotations(): Map; /** * Clear annotations from LocalStorage */ export declare function clearAnnotations(): boolean; /** * Save settings to LocalStorage */ export declare function saveSettings(settings: Settings): boolean; /** * Load settings from LocalStorage */ export declare function loadSettings(): Partial | null; /** * Save theme preference */ export declare function saveTheme(theme: 'light' | 'dark'): boolean; /** * Load theme preference */ export declare function loadTheme(): 'light' | 'dark' | null; /** * Save the user-placed toolbar position */ export declare function saveToolbarPosition(position: Position): boolean; /** * Load the user-placed toolbar position */ export declare function loadToolbarPosition(): Position | null; /** * Create an auto-save handler that debounces saves */ export declare function createAutoSaver(getAnnotations: () => Map, debounceMs?: number): { save: () => void; flush: () => void; destroy: () => void; }; /** * Clean up all expired annotations across all pages */ export declare function cleanupExpiredAnnotations(): number; //# sourceMappingURL=persistence.d.ts.map