import { CommonsFixedDate } from './commons-fixed-date.mjs'; import { CommonsFixedDuration } from './commons-fixed-duration.mjs'; export type TCommonsCache = { id: IdT; timestamp: CommonsFixedDate; data: DataT; }; export declare class CommonsCache { private generateRandomId; private maxAge?; private caches; constructor(generateRandomId: () => IdT, maxAge?: CommonsFixedDuration | undefined); getRawCacheById(id: IdT): TCommonsCache | undefined; has(id: IdT): boolean; protected getIdByData(data: DataT, isEqual: (a: DataT, b: DataT) => boolean): IdT | undefined; getById(id: IdT): DataT | undefined; touchForId(id: IdT, date?: CommonsFixedDate): boolean; storeForId(id: IdT, data: DataT): void; storeForData(data: DataT, isEqual: (a: DataT, b: DataT) => boolean): IdT; deleteForId(id: IdT): boolean; getExpiration(id: IdT): CommonsFixedDate | undefined; private checkForAndExpire; wipe(): void; } export declare class CommonsUidCache extends CommonsCache { constructor(maxAge?: CommonsFixedDuration); }