/** * @octomil/browser — Model integrity verification * * SHA-256 checksum computation and verification using the Web Crypto API. */ /** * Compute the SHA-256 hash of an ArrayBuffer, returned as a hex string. */ export declare function computeHash(data: ArrayBuffer): Promise; /** * Verify that `data` matches the expected SHA-256 hex digest. * Returns `true` if the hash matches, `false` otherwise. */ export declare function verifyModelIntegrity(data: ArrayBuffer, expectedHash: string): Promise; /** * Same as `verifyModelIntegrity` but throws on mismatch. */ export declare function assertModelIntegrity(data: ArrayBuffer, expectedHash: string): Promise; //# sourceMappingURL=integrity.d.ts.map