import type { IFileSystem } from "../types"; export declare class ModuleCache { readonly path: string; private fs; private manifest; private saving; constructor(path: string, fs?: IFileSystem); load(): Promise; save(): Promise; getVersion(module: string): string | undefined; setVersion(module: string, version: string): void; hasVersion(module: string, version: string): boolean; getFolder(module: string, noClean?: boolean, noCreate?: boolean): Promise; static getTemp(): Promise; transfer(source: string, module: string, version: string): Promise; private copyDir; private queueSave; }