/** * The zlib and gzip payloads of a JData document, compressed or decompressed together on threads * (zlibmt), for decodeAsync, encodeAsync and the other async functions. * * Copyright (c) 2019-2026 Qianqian Fang . BSD 3-clause license. */ import { Codec } from './codecs'; import { ThreadOptions } from './zlibmt'; /** Bytes of a _ArrayZipData_ entry for zlib and gzip, as the decoder reads it. */ type ZipBytes = (z: any) => Uint8Array; /** The zlib and gzip payloads of a JData value, inflated on threads: entry -> bytes. */ export declare function unzipPayloads(value: any, codecs: { [name: string]: Codec; } | undefined, bytesOfEntry: ZipBytes, o: ThreadOptions): Promise>; /** A zlib or gzip payload to compress later: the bytes, and where its result goes. */ export interface ZipJob { bytes: Uint8Array; gz: boolean; level: number; put: (c: Uint8Array) => void; } /** Compresses the jobs on threads (zlib in zlibmt blocks), putting each result in place. */ export declare function zipPayloads(jobs: ZipJob[], o: ThreadOptions): Promise; export {};