UNPKG

@cspell/cspell-tools

Version:
7 lines 466 B
type HashAlgorithm = 'SHA1'; export declare function calcChecksum(buf: Buffer, alg?: HashAlgorithm): string; export declare function checkChecksum(checksum: string, buf: Buffer, alg?: HashAlgorithm): boolean; export declare function calcFileChecksum(filename: string, alg?: HashAlgorithm): Promise<string>; export declare function checkFile(checksum: string, filename: string, alg?: HashAlgorithm): Promise<boolean>; export {}; //# sourceMappingURL=checksum.d.ts.map