summaryrefslogtreecommitdiff
path: root/desktop/node_modules/@electron/get/dist/esm/Cache.d.ts
blob: 626001a7797bd8508a0a3f61212f14305d1b60e4 (plain)
1
2
3
4
5
6
7
8
export declare class Cache {
    private cacheRoot;
    constructor(cacheRoot?: string);
    static getCacheDirectory(downloadUrl: string): string;
    getCachePath(downloadUrl: string, fileName: string): string;
    getPathForFileInCache(url: string, fileName: string): Promise<string | null>;
    putFileInCache(url: string, currentPath: string, fileName: string): Promise<string>;
}