/** * A function that generates a cache key from method arguments. */ export type KeyGenerator = (...args: any[]) => string; /** * LRU (Least Recently Used) cache decorator for methods. * Caches return values based on method arguments, evicting the oldest entry * when the cache reaches maxSize. * * @param maxSize - Maximum number of entries to keep in the cache. * @param keyGenerator - Optional custom function to generate cache keys from method arguments. */ export declare function LRUCache(maxSize?: number, keyGenerator?: KeyGenerator): (_target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void; /** * Clear the LRU cache associated with a decorated method. * @param target - The class (for static methods) or instance (for instance methods). * @param propertyKey - The method name. */ export declare function clearLRUCache(target: any, propertyKey: string): void; //# sourceMappingURL=LRUCacheDecorator.d.ts.map