import type { OptimizedImage } from "./types.js"; export interface CacheEntry { mtimeMs: number; size: number; result: OptimizedImage; } export type CacheData = Record; export declare function isFresh(sourcePath: string, cached: CacheEntry | undefined, targets: string[]): Promise; export declare function loadCache(cacheFile: string): Promise; export declare function saveCache(cacheFile: string, data: CacheData): Promise;