/** * SHA256 helpers * Local hashing via Node crypto + remote hashing via shell with fallback */ /** * Compute sha256 of a local file (streaming, no full load to memory) */ export declare function sha256OfFile(localPath: string): Promise; /** * Compute sha256 for a list of files, reading no more than sixteen at once. * Results are returned in the same order as the input paths. * * The first unreadable file stops the work: the error propagates up, and * the remaining readers don't finish the tree the caller has already given * up on (for a download, they'd otherwise be reading the staging path right * before it gets deleted). */ export declare function sha256OfFiles(localPaths: string[]): Promise; /** * Compute sha256 of a Buffer */ export declare function sha256OfBuffer(buf: Buffer): string;