/** * A `deflate-raw` compression transform (inverse of {@link inflateRawTransform}): pipe a byte stream * through it to get the compressed bytes without buffering the whole payload. Used for the chunked * `sendText`/`sendBytes`/`sendFile` paths, where the full payload is known up front but is streamed * (e.g. from `file.stream()`) rather than held in memory. */ export declare function deflateRawTransform(): ReadableWritablePair; /** * A `deflate-raw` decompression transform (inverse of {@link deflateRawTransform}): pipe a * stream of compressed bytes through it to get the decompressed bytes. Inflate emits output greedily, * so as long as the sender flushed at write boundaries each write's content is produced as soon as * its compressed bytes arrive. */ export declare function inflateRawTransform(): ReadableWritablePair; /** deflate-raw compresses a byte array in full. Use for inline payloads; prefer the streaming * path for the chunked case. */ export declare function deflateRawCompress(data: NonSharedUint8Array): Promise; /** * Decompresses a raw-deflate byte array in full (inverse of {@link deflateRawCompress}). * `maxByteLength` bounds the decompressed output (decompression-bomb guard); exceeding it rejects * with a `PayloadTooLarge` error. */ export declare function deflateRawDecompress(data: NonSharedUint8Array, maxByteLength?: number): Promise; /** * Drains a byte stream, concatenating all of its chunks into a single array. When * `maxByteLength` is given, drops the stream and throws `PayloadTooLarge` as soon as the * accumulated output exceeds it. */ export declare function collect(stream: ReadableStream, maxByteLength?: number): Promise;