import type { Annotation } from "../types"; export declare function getStorageKey(pathname: string): string; export declare function loadAnnotations(pathname: string): T[]; export declare function saveAnnotations(pathname: string, annotations: T[]): void; export declare function clearAnnotations(pathname: string): void; /** * Load all annotations from localStorage across all pages. * Returns a map of pathname -> annotations. */ export declare function loadAllAnnotations(): Map; /** * Save annotations with a sync marker indicating they've been synced to a session. * Adds `_syncedTo: sessionId` to each annotation before saving. */ export declare function saveAnnotationsWithSyncMarker(pathname: string, annotations: Annotation[], sessionId: string): void; /** * Get annotations that haven't been synced to the given session. * Returns annotations without a `_syncedTo` marker, or with a different session ID. * If no sessionId provided, returns annotations without any sync marker. */ export declare function getUnsyncedAnnotations(pathname: string, sessionId?: string): Annotation[]; /** * Remove `_syncedTo` markers from all annotations for a pathname. * Useful when resetting sync state or changing sync destination. */ export declare function clearSyncMarkers(pathname: string): void; export declare function getSessionStorageKey(pathname: string): string; export declare function loadSessionId(pathname: string): string | null; export declare function saveSessionId(pathname: string, sessionId: string): void; export declare function clearSessionId(pathname: string): void; //# sourceMappingURL=storage.d.ts.map