/** * sourceKey / contentHash 与稳定序列化。 */ /** * 稳定 JSON 序列化(对象键排序)。 */ export declare function stableStringify(value: unknown): string; /** * SHA256 hex。 */ export declare function sha256Hex(input: string | Buffer): string; /** * 正文 content hash(脱敏后文本)。 */ export declare function contentHash(text: string): string; /** * sourceKey = SHA256(sessionId, entryId, blockIndex, chunkIndex, chunkerVersion) */ export declare function sourceKey(input: { sessionId: string; entryId: string; blockIndex: number; chunkIndex: number; chunkerVersion?: string; }): string; /** * 幂等唯一键组成部分:sourceKey + contentHash + policyVersion。 */ export declare function persistenceIdentity(input: { sourceKey: string; contentHash: string; policyVersion?: string; }): string; /** * session 路径/ID 的无正文 hash(诊断用)。 */ export declare function sessionHash(sessionId: string): string; //# sourceMappingURL=hash.d.ts.map