/** * Image Cache Helper * * Shared caching utilities for image fetchers. */ import type { ResponseCache } from '../caching/types'; /** * Cache a successful result. */ export declare function cacheResult(cache: ResponseCache, key: string, data: T): Promise; /** * Cache a null/failed result. */ export declare function cacheNull(cache: ResponseCache, key: string): Promise; /** * Get cached result or null if not found. */ export declare function getCached(cache: ResponseCache, key: string): Promise<{ hit: true; data: T | null; } | { hit: false; }>; //# sourceMappingURL=cache-helper.d.ts.map