import { CacheLayer } from './CacheLayer'; import { DiskStats } from './typings'; import { outputJSON, readJSON } from 'fs-extra'; export declare class DiskCache implements CacheLayer { private cachePath; private readFile; private writeFile; private hits; private total; private lock; constructor(cachePath: string, readFile?: typeof readJSON, writeFile?: typeof outputJSON); has: (key: string) => boolean; getStats: (name?: string) => DiskStats; get: (key: string) => Promise; set: (key: string, value: V) => Promise; private getPathKey; }