import { Notification } from '../components';
declare class NotificationCache {
    private readonly PAGE_SIZE;
    private onPageUpdate;
    private cache;
    private currentPage;
    observePageUpdate(callback: (notifications: Notification[], hasMore: boolean) => void): void;
    setCurrentPage(page: number): void;
    private updateCache;
    private syncCurrentPage;
    deleteById(id: string): void;
    addToFront(notification: Notification): void;
    markAsRead(id: string, mark: Partial<Notification>): void;
    markAllAsRead(): void;
    clearAll(): void;
    resetCache(): void;
    loadPageFromApi(page: number, loader: () => Promise<{
        notifications: Notification[];
        hasMore: boolean;
    }>): Promise<void>;
    private getAllFromCache;
}
export declare const notificationCache: NotificationCache;
export {};
