1 |
|
2 | import { NodeIntegrity } from "./asar";
|
3 | export interface AsarIntegrityOptions {
|
4 | readonly resourcesPath: string;
|
5 | readonly resourcesRelativePath: string;
|
6 | }
|
7 | export interface HeaderHash {
|
8 | algorithm: "SHA256";
|
9 | hash: string;
|
10 | }
|
11 | export interface AsarIntegrity {
|
12 | [key: string]: HeaderHash;
|
13 | }
|
14 | export declare function computeData({ resourcesPath, resourcesRelativePath }: AsarIntegrityOptions): Promise<AsarIntegrity>;
|
15 | export declare function hashFile(file: string, blockSize?: number): Promise<NodeIntegrity>;
|
16 | export declare function hashFileContents(contents: Buffer | string, blockSize?: number): NodeIntegrity;
|