import type { Cache } from './Cache.js'; import type { CacheEventListener, CacheEventType, CacheNode } from './internalTypes.js'; type ListenerMap any> = Partial>>>; export declare class CacheEventEmitter any> { /** * The list of [l]isteners for the given [t]ype. */ l: ListenerMap; /** * The [c]ache the emitter is associated with. */ private c; constructor(cache: Cache); /** * Method to [a]dd a listener for the given cache change event. */ a(type: Type, listener: CacheEventListener): void; /** * Method to [n]otify all listeners for the given cache change event. */ n(type: CacheEventType, node: CacheNode, reason?: string): void; /** * Method to [r]emove a listener for the given cache change event. */ r(type: Type, listener: CacheEventListener): void; } export {};