import { IHighlight } from './types'; export interface HighlightSerializer { version: number; serialize: (highlights: Array) => string; deserialize: (raw: string) => Array; } export interface HighlightStore { load: () => Promise> | Array; save: (highlights: Array) => Promise | void; clear?: () => Promise | void; hasData?: () => Promise | boolean; debounceMs?: number; } export declare function createJsonHighlightSerializer(version?: number): HighlightSerializer; export declare function createStorageStore(storage: Pick, key: string, serializer?: HighlightSerializer): HighlightStore; export declare function createLocalStorageStore(key: string, serializer?: HighlightSerializer): HighlightStore;