import type { MemoCache } from '@naturalcycles/js-lib/decorators'; import { LRUCache } from 'lru-cache'; export type LRUMemoCacheOptions = Partial>; /** * @example * Use it like this: * * `@_Memo({ cacheFactory: () => new LRUMemoCache({...}) })` * method1 () */ export declare class LRUMemoCache implements MemoCache { constructor(opt: LRUMemoCacheOptions); private lru; has(k: any): boolean; get(k: any): any; set(k: any, v: any): void; clear(): void; }