import type { StorageService } from './types'; /** * In browser implementation of the storage service. */ export declare class BrowserStorageService implements StorageService { private storage; private prefix; constructor(storage?: Storage, prefix?: string); /** * Adds a new item in the browser storage. * * @param key - The key of the item. * @param item - The item to save. * @param ttlInMs - The TTL in ms of the item in the browser storage. */ setItem(key: string, item: any, ttlInMs?: number): void; /** * Retrieves an item by its key. * * @param key - The key of the item. * @returns The founded item or null. */ getItem(key: string): Item | null; /** * Removes an item by its key. * * @param key - The key of the item. * @returns The removed item or null. */ removeItem(key: string): Item | null; /** * Clears the storage. * * @returns The number of removed items. */ clear(): number; protected prefixKey(key: string): string; protected createExpirableItem(item: any, ttlInMs?: number): { value: any; ttl?: number | undefined; }; protected currentTimestamp(): number; protected getItemValue(item: any): any; protected getOwnKeys(): string[]; protected removeExpiredItems(): void; }