//#region src/utils/hash.d.ts /** * MD5 hex digest. Used by the memory layer for content deduplication * (`MD5(content)` is the dedup key for incoming facts / messages). * * MD5 is **not** collision-resistant (practical chosen-prefix * collisions exist) and is **not** used as a cryptographic primitive * here - it is a fast content-addressing convenience where an * adversarial collision merely suppresses a duplicate memory write. * Do not use this helper for password hashing, MAC, tamper evidence, * or any other security-sensitive use case (use `@graphorin/security` * for those; the audit log uses SHA-256). * * @stable */ declare function md5(content: string | Uint8Array): string; /** * Pure-JS XXH32 implementation. Used by the memory-modification guard * - fast, non-cryptographic content fingerprinting (`xxhash(content)` * tracks whether a tool's view of memory has shifted while the LLM was * thinking). * * Not security-sensitive - never use for tampering detection of an * untrusted attacker; for that the audit log uses SHA-256 (in * `@graphorin/security`). * * @stable */ declare function xxhash(input: string | Uint8Array, seed?: number): string; //#endregion export { md5, xxhash }; //# sourceMappingURL=hash.d.ts.map