/** Compression options */ export type CompressionOptions = { modules?: { [moduleName: string]: any; }; }; /** Compression */ export declare abstract class Compression { abstract readonly name: string; abstract readonly extensions: string[]; abstract readonly contentEncodings: string[]; abstract readonly isSupported: boolean; constructor(options?: CompressionOptions); /** Preloads any dynamic libraries. May enable sync functions */ preload(modules?: Record): Promise; /** Asynchronously compress data */ compress(input: ArrayBuffer): Promise; /** Asynchronously decompress data */ decompress(input: ArrayBuffer, size?: number): Promise; /** Synchronously compress data */ compressSync(input: ArrayBuffer): ArrayBuffer; /** Synchronously compress data */ decompressSync(input: ArrayBuffer, size?: number): ArrayBuffer; /** Compress batches */ compressBatches(asyncIterator: AsyncIterable | Iterable): AsyncIterable; /** Decompress batches */ decompressBatches(asyncIterator: AsyncIterable | Iterable): AsyncIterable; protected concatenate(asyncIterator: any): Promise; protected improveError(error: any): any; } //# sourceMappingURL=compression.d.ts.map