/** * Shared hashing helpers used by the SSR renderer and the client-side * hydration mismatch verifier. * * The hash is intentionally cheap (DJB2 → base36) — its goal is to spot * Server↔Client divergence in dev, not to provide cryptographic guarantees. * * @module bquery/ssr */ /** * Computes a stable, very small hash for a string. Used to attach a hydration * annotation that the client can compare against during dev-time hydration. * * Collisions are acceptable here: the goal is a mismatch *warning*, not * security. * * @internal */ export declare const cheapHash: (input: string) => string; /** * The attribute that holds the directive-signature hash on a server-rendered * element. Public name so userland can read/write it deterministically. */ export declare const HYDRATION_HASH_ATTR = "data-bq-h"; /** * Collects the directive signature for a virtual element (used by the pure * renderer). * * @internal */ export declare const collectDirectiveSignatureFromAttrs: (attributeOrder: readonly string[], attributes: Readonly>, prefix: string) => string; /** * Collects the directive signature for a real DOM `Element`. Used by the * client-side mismatch verifier and the DOM-backed renderer. * * @internal */ export declare const collectDirectiveSignatureFromElement: (el: Element, prefix: string) => string; //# sourceMappingURL=hash.d.ts.map