import type { OptimizeConfig } from './types'; export interface FileCacheSnapshot { size: number; mtimeMs: number; } export interface OptimizeCache { filePath: string; get(relativePath: string): FileCacheSnapshot | null; set(relativePath: string, snapshot: FileCacheSnapshot): void; delete(relativePath: string): void; save(): Promise; } export declare function getDefaultCacheRoot(): string; export declare function createFileSnapshot(stat: Pick): FileCacheSnapshot; export declare function isSnapshotMatch(current: FileCacheSnapshot, cached: FileCacheSnapshot | null | undefined): boolean; export declare function buildCacheKey(config: Pick): string; export declare function loadOptimizeCache(config: Pick): Promise;