/** * Generic codec dispatch by name, plus auto-detecting decompression. * * `compress(data, 'zstd')` picks the codec explicitly; `decompress(data)` * sniffs the header (see {@link detectFormat}) and routes accordingly. For * headerless formats (brotli, raw lzma, raw lz4 block, snappy) pass the codec * explicitly via `decompressWith`. */ import type { Codec, CompressOptions, DecompressOptions } from './types.js'; /** Compress with the named codec. */ export declare function compress(data: Uint8Array, codec: Codec, opts?: CompressOptions): Promise; /** Decompress with the named codec. */ export declare function decompressWith(data: Uint8Array, codec: Codec, opts?: DecompressOptions): Promise; /** * Decompress by auto-detecting the format from magic bytes. Throws * {@link ZipKitError} if the format has no recognizable signature — use * {@link decompressWith} and name the codec in that case. */ export declare function decompress(data: Uint8Array, opts?: DecompressOptions): Promise; //# sourceMappingURL=compress.d.ts.map