/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * File and content hashing utilities. */ /** * Streaming SHA-256 of a file, hex-encoded. */ export declare function sha256File(path: string): Promise; /** * SHA-256 of in-memory content, hex-encoded. */ export declare function sha256Hex(data: string | NodeJS.ArrayBufferView | string[]): string; /** * Streaming MD5 of a file, hex-encoded. MD5 (not SHA-256) is used for build-provenance fingerprints that follow an * existing convention — the HM Land Registry PPD snapshot ships an `.md5` sibling, and * `gazetteer-pipeline/admin/index.ts`'s build-log fingerprint is MD5 — so a shard/artifact header recording a source * checksum matches the surrounding provenance chain rather than mixing algorithms. Not a security primitive; only ever * used for accidental-corruption / drift detection. */ export declare function md5File(path: string): Promise; /** * MD5 of in-memory content, hex-encoded — the {@link md5File} counterpart for a string that never becomes a file. Same * provenance-only rationale, and the same non-security caveat: it exists so a query text, a manifest line or a config * blob can be fingerprinted with the SAME algorithm as the files recorded beside it in one `meta` table. */ export declare function md5Hex(data: string | NodeJS.ArrayBufferView): string; //# sourceMappingURL=hash.d.ts.map