export declare class VitestCache {
    private cacheDir;
    private cache;
    constructor(cacheDir?: string);
    private ensureCacheDir;
    private getCacheFilePath;
    private loadCacheFile;
    private appendToCacheFile;
    private rewriteCacheFile;
    get<T>(key: string): Promise<T | undefined>;
    set<T>(key: string, value: T): Promise<void>;
    cached<T>(key: string, factory: () => Promise<T>): Promise<T>;
    clear(prefix?: string): Promise<void>;
    compact(prefix: string): Promise<void>;
}
export declare function getCache(cacheDir?: string): VitestCache;
export declare function cached<T>(key: string, factory: () => Promise<T>): Promise<T>;
//# sourceMappingURL=cache.d.ts.map