export declare class DiskCache { #private; static inDirectory(path: string): DiskCache; private constructor(); entry(...key: readonly string[]): Entry; entryFor(path: string, ...comments: readonly string[]): Entry; pruneExpiredEntries(): void; } export declare class Entry { #private; readonly path: string; constructor(path: string); get atime(): Date; get pathExists(): boolean; /** * Whether the directory has been completely written * * The presence of the marker file is a signal that we can skip trying to lock the directory. */ get isComplete(): boolean; /** * Retrieve an entry from the cache * * If the entry doesn't exist yet, use 'cb' to produce the file contents. */ retrieve(cb: (path: string) => void): { path: string; cache: 'hit' | 'miss'; }; lock(cb: (entry: LockedEntry) => T): T; read(file: string): Buffer | undefined; } export interface LockedEntry { delete(): void; write(name: string, data: Buffer): void; /** * Mark the entry has having been completed * * The modification time of this file is used for cleanup. */ markComplete(): void; } //# sourceMappingURL=disk-cache.d.ts.map