/** * zipkit — overkill compression for Node, Bun & the browser. * * One typed API over a single Wasm engine: gzip, deflate, zlib, zstd, lz4, * snappy, brotli, lzma, bzip2, plus a ZIP container and lossless image/video * codecs. ZipKit picks native speed where it wins and libdeflate density where * ratio matters. * * @example * ```ts * import { gzip, gunzip, zstd, compress, decompress } from '@myrialabs/zipkit'; * * const gz = await gzip(bytes); // named codec, async, lazy-loads the engine * const back = await gunzip(gz); * const small = await compress(bytes, 'zstd', { level: 19 }); * const orig = await decompress(small); // auto-detects the format * ``` */ export { gzip, gunzip, deflate, inflate, zlib, unzlib, zstd, unzstd, lz4, unlz4, snappy, unsnappy, brotli, unbrotli, lzma, unlzma, xz, unxz, bzip2, unbzip2, encodeImage, decodeImage, encodeFrames, decodeFrames, type FrameCodec } from './codecs/index.js'; export { compress, decompress, decompressWith } from './compress.js'; export { detectFormat, type DetectedFormat } from './detect.js'; export { pack, unpack } from './pack.js'; export { zip, unzip, listEntries, zipStream, type ZipEntryInput, type ZipEntry, type ZipEntryInfo, type ZipMethod, type UnzipOptions, type ZipStreamOptions } from './zip/index.js'; export { sevenZip, unSevenZip, type SevenZipEntryInput, type SevenZipEntry } from './sevenzip/index.js'; export { extractStream, type ArchiveFormat, type ArchiveEntryInfo, type ArchiveEntryChunk, type ExtractStreamOptions } from './extract.js'; export { tar, untar, tarGz, untarGz, tarZstd, untarZstd, type TarEntryInput, type TarEntry, type TarEntryType } from './tar/index.js'; export { ZipKit, init } from './zipkit.js'; export { ZipKitEngine, getEngine } from './engine.js'; export { strToU8, strFromU8, DecodeUTF8, EncodeUTF8 } from './string.js'; export { crc32, verifyChecksum } from './checksum.js'; export { trainDictionary, compressWithDictionary, decompressWithDictionary, type TrainOptions } from './dictionary.js'; export { compressDelta, applyDelta } from './delta.js'; export { entriesFromFileHandles, zipToFileHandle, type FileLike, type ReadableFileHandle, type WritableFileHandle, type FileHandleEntryOptions } from './fsa.js'; export { compressionStream, decompressionStream } from './streams/index.js'; export { WorkerPool, sharedPool, type WorkerPoolOptions } from './workers/index.js'; export { compressParallel, decompressParallel, isParallelContainer, type ParallelCompressOptions, type ParallelDecompressOptions } from './parallel/index.js'; export { elysia, express, hono, negotiate, type CompressionOptions, type Encoding } from './middleware/index.js'; export type { Bytes, Codec, CompressionMode, DeflateLevel, CompressOptions, DecompressOptions, ProgressCallback } from './types.js'; export { AbortError, ZipKitError } from './types.js'; //# sourceMappingURL=index.d.ts.map