declare class Cacher { refresher: () => Promise; filename: string; bootstrapFile?: string; ttlMilliseconds: number; readError?: any; writeError?: any; constructor(refresher: () => Promise, filename: string, ttlMilliseconds?: number, bootstrapFile?: string); getAsync(): Promise; clearAsync(): Promise; } declare function getCacheDir(): string; export { Cacher, getCacheDir };