/** * Copyright (c) 2026 AzerothJS. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * Options for negotiated response compression (br/gzip/deflate): the size floor below which * compression costs more than it saves, and the media types worth compressing. Event streams * and already-compressed types are skipped regardless. */ export interface CompressOptions { /** Bodies below this byte count (per Content-Length, when known) pass through. Default 1024. */ threshold?: number; } /** * Returns `response` compressed for `request`, or `response` itself when compression does * not apply. Always safe to call unconditionally on the way out. */ export declare function compressResponse(request: Request, response: Response, options?: CompressOptions): Response;