import { LRU } from 'tiny-lru'; import type { ExpirableItem, MapInterface } from './lrutypes'; export type KeyvLruOptions = { max: number; ttl?: number; resetTtl?: boolean; serialize?: (data: any) => string; deserialize?: (data: string) => any; }; /** * An adapter from tiny-lru to the MapInterface API. */ export declare class KeyvLru implements MapInterface { cache: LRU; private defaultTtl?; serialize?: (data: any) => string; deserialize?: (data: string) => any; opts?: { serialize?: (data: any) => string; deserialize?: (data: string) => any; }; constructor(options?: KeyvLruOptions); clear(): void; delete(key: string): boolean; get(key: string): ExpirableItem | undefined; set(key: string, value: T): 1 | 0; }