export declare function sha256Hex(bytes: Uint8Array | string): string; /** Round to 1 mm. Idempotent: rounding an already rounded value returns it unchanged. */ export declare function roundMm(value: number): number; export interface CanonicalOptions { /** Round every number to 1 mm. Rows yes; manifest no (a longitude needs more digits). */ quantise?: boolean; } /** Compact canonical JSON of any JSON-shaped value. */ export declare function canonicalJson(value: unknown, options?: CanonicalOptions): string; /** Human-readable canonical JSON for small documents (manifest, dem.json, overrides). */ export declare function prettyCanonicalJson(value: unknown): string; /** A document of row arrays, one row per line: roads.json and areas.json. A non-array section is written inline. */ export declare function rowsDocument(sections: Array<[name: string, rows: unknown[] | Record | undefined]>): string; export declare function ndjsonDocument(rows: unknown[]): string; export declare function sortById(rows: readonly T[]): T[]; /** gzip with a fixed header (no mtime, OS = unix), so the same bytes in give the same bytes out on every machine zlib agrees on. */ export declare function gzipStable(bytes: Uint8Array): Buffer; export declare function gunzipBytes(bytes: Uint8Array): Buffer; export declare function isGzipUri(uri: string): boolean;