/** * Cache Event Factory * Creates and emits cache-related events with type safety */ import type { CacheHitEvent, CacheMissEvent, CacheInvalidateEvent, EventOptions, EmitInvalidateOptions, EmitHitOptions } from '@plyaz/types/api'; import { BaseEventFactory } from './base'; import type { EventEmitter } from '../../pubsub'; /** * Cache Event Factory */ export declare class CacheEventFactory extends BaseEventFactory<'cache'> { constructor(emitter: EventEmitter); /** * Emit cache hit event */ emitHit(key: string, options?: EmitHitOptions): CacheHitEvent; /** * Emit cache miss event */ emitMiss(key: string, reason?: 'not_found' | 'expired' | 'disabled', options?: EventOptions): CacheMissEvent; /** * Emit cache invalidate event */ emitInvalidate(options?: EmitInvalidateOptions): CacheInvalidateEvent; } /** * Get singleton cache event factory * @param emitter - The event emitter to use (optional, defaults to shared emitter) */ export declare function getCacheEventFactory(emitter?: EventEmitter): CacheEventFactory; //# sourceMappingURL=cache.d.ts.map