2022-09-30 05:39:11 +00:00

8 lines
327 B
TypeScript

export declare class Cache {
private cacheRoot;
constructor(cacheRoot?: string);
getCachePath(downloadUrl: string, fileName: string): string;
getPathForFileInCache(url: string, fileName: string): Promise<string | null>;
putFileInCache(url: string, currentPath: string, fileName: string): Promise<string>;
}