import type { Transform } from "node:stream"; export type Encoding = "br" | "gzip"; /** Responses smaller than this aren't worth the compression overhead. */ export declare const MIN_COMPRESS_BYTES = 1024; /** Pick the best encoding the client accepts, preferring brotli. */ export declare function pickEncoding(acceptEncoding: string | undefined): Encoding | null; export declare function isCompressibleExt(ext: string): boolean; /** Streaming compressor for piping files. */ export declare function compressStream(enc: Encoding): Transform; /** One-shot compressor for in-memory bodies (e.g. JSON). */ export declare function compressBuffer(enc: Encoding, buf: Buffer): Buffer; //# sourceMappingURL=compress.d.ts.map