15815213711
2024-08-26 67b8b6731811983447e053d4396b3708c14dfe3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/// <reference types="node" />
import { Arch } from "builder-util";
import { Hash } from "crypto";
export interface BuildCacheInfo {
    executableDigest: string;
}
export declare class BuildCacheManager {
    private readonly executableFile;
    static VERSION: string;
    readonly cacheDir: string;
    readonly cacheInfoFile: string;
    readonly cacheFile: string;
    cacheInfo: BuildCacheInfo | null;
    private newDigest;
    constructor(outDir: string, executableFile: string, arch: Arch);
    copyIfValid(digest: string): Promise<boolean>;
    save(): Promise<void>;
}
export declare function digest(hash: Hash, files: Array<string>): Promise<string>;