/** * Cache service using WeakRef to allow garbage collection of values * when they're no longer referenced elsewhere and memory pressure occurs. * Uses string keys with weakly-referenced values. */ export declare class WeakCacheService { #private; constructor(); /** * Get a cached value by key * @param {string} key - String key to lookup * @returns {*} The cached value or undefined if not found or garbage collected */ get(key: string): any; /** * Create/store a value in the cache with weak reference * @param {string} key - String key for the cache entry * @param {Object} value - Value to cache (must be an object, not a primitive) * @returns {Object} The cached value */ create(key: string, value: unknown): object; /** * Check if a key exists and its value is still alive * @param {string} key - String key to check * @returns {boolean} True if key exists and value hasn't been garbage collected */ has(key: string): boolean; /** * Manually delete a cache entry * @param {string} key - String key to delete * @returns {boolean} True if deletion was successful */ delete(key: string): boolean; /** * Get the number of cache entries (including potentially garbage collected ones) * @returns {number} Cache size */ size(): number; /** * Clear all cache entries */ clear(): void; } export declare const weakCacheService: WeakCacheService;