/** * Apply cosmetic-tolerant normalization before hashing. Pure function — * exported for the bundle smokes so they can assert the normalized form * is what they expect. */ export declare function normalizeGeneratedContent(content: string): string; /** * Compute the manifest hash for a generated file. Returns the canonical * `sha256:` form recorded in manifest.generatedFiles[].hash. * * Implementation note: existing manifests have hashes from the * pre-normalization algorithm (whole-file content with USER-CODE * bodies masked, no line-ending or comment normalization). New emits * write the normalized hash; validators that need to accept legacy * manifests can call `legacyHashGeneratedContent` too and accept * either match — see validateIntegration / inspectIntegration. Don't * silently fall back inside this function: the emit side should always * write the new hash so manifests converge to the new format. */ export declare function hashGeneratedContent(content: string): string; /** * Pre-R2-F-R2-5 hash algorithm: mask USER-CODE bodies, hash bytes. * Kept so the drift check can accept manifests emitted by older * scaffolders without forcing a regenerate just to update the recorded * hashes. Don't call from emit code — that would re-introduce the * line-ending / KDoc-trim false positives. */ export declare function legacyHashGeneratedContent(content: string): string; //# sourceMappingURL=generatedHash.d.ts.map