import type { Format } from '../index.js'; /** * A Browser compatible Gzip compression function * @param bytes - the data to decompress * @param format - the format of the data. Defaults to 'gzip' * @returns - the decompressed data */ export declare function compressStream(bytes: Uint8Array, format?: Format): Promise; /** * A Browser compatible Gzip decompression function * @param bytes - the data to decompress * @param format - the format of the data. Defaults to 'gzip' * @returns - the decompressed data */ export declare function decompressStream(bytes: Uint8Array, format?: Format): Promise; /** * Each {@link ZipItem} can have its decompressed bytes read by calling its `read()` method, * which'll give either `Uint8Array` _or_ `Promise` (as it's possible to be sync). */ export interface ZipItem { filename: string; comment: string; read: () => Promise | Uint8Array; } /** * Iterate over the items in a zip file. See {@link ZipItem}. * @param raw - the raw data to read * @yields {ZipItem} */ export declare function iterZipFolder(raw: Uint8Array): Generator; /** * Decompress the LZW data * @param buffer - The LZW data * @returns - The decompressed data */ export declare function lzwDecoder(buffer: ArrayBufferLike): ArrayBufferLike; /** WriteZipItem - Represents an item to be zipped */ export interface WriteZipItem { /** The filename of the item */ name: string; /** The comment of the item */ comment: string; /** The bytes of the item */ data: Uint8Array; } /** * Zip a collection of files * @param items - The collection of files you want to compress * @returns A compressed folder of items */ export declare function zipFolder(items: WriteZipItem[]): Promise; //# sourceMappingURL=compression.d.ts.map