import type { DurableSeriesState, TaskEvent } from './types.js'; /** * Minimal JSON canonicalization used by the hot/cold storage protocol. * * Objects are recursively key-sorted and numbers are normalized by numeric * value, so digests do not depend on JavaScript object insertion order or on * insignificant JSON number formatting. */ export declare function canonicalJson(value: unknown): string; export declare function archiveEventRecord(event: TaskEvent): string; export declare function durableSeriesStateRecord(state: DurableSeriesState): string; export declare function sha256Hex(value: string): Promise; export declare function computeArchiveBatchDigest(previousBatchDigest: string | null, events: readonly TaskEvent[], seriesLatest: readonly DurableSeriesState[]): Promise; export declare function computeArchiveSourcePageDigest(events: readonly TaskEvent[]): Promise; export declare function computeArchiveSourceDigest(pageDigests: readonly string[]): Promise; export declare function computeSeriesStateDigest(seriesLatest: readonly DurableSeriesState[]): Promise; //# sourceMappingURL=storage-digest.d.ts.map