/** * Demerzel zstd I/O helpers * * Wraps @mongodb-js/zstd for snapshot read/write. * Write path: always produces .zst * Read path: tries .zst first; falls back to legacy (plain text) */ /** The `.zst` extension suffix appended to snapshot paths on disk. */ export declare const ZST_SUFFIX = ".zst"; /** * Given a canonical snapshot path (e.g. `.foundation/snapshot.txt`), returns * the on-disk compressed path (`.foundation/snapshot.txt.zst`). */ export declare function compressedPath(snapshotPath: string): string; /** * Write `content` to `.zst`. * The uncompressed `.txt` file is NOT written — only the compressed form. * * @returns The actual path written to disk (i.e. `snapshotPath + ".zst"`). */ export declare function writeCompressed(snapshotPath: string, content: string): Promise; /** * Read a snapshot, transparently handling both compressed and legacy formats. * * Resolution order: * 1. `.zst` — decompress and return UTF-8 string * 2. `` (legacy plain text) — read directly * 3. Throws if neither exists */ export declare function readSnapshotContent(snapshotPath: string): Promise; /** * Check whether a snapshot exists on disk (either compressed or legacy). */ export declare function snapshotExists(snapshotPath: string): boolean; /** * Return the actual on-disk path for a snapshot (compressed if present, * otherwise legacy), or `null` if neither exists. */ export declare function resolveSnapshotPath(snapshotPath: string): string | null; //# sourceMappingURL=zstd-io.d.ts.map