import type * as http from 'http'; type Interceptor = (buffer: Buffer, proxyRes: TReq, req: TReq, res: TRes) => Promise; /** * Intercept responses from upstream. * Automatically decompress (deflate, gzip, brotli). * Give developer the opportunity to modify intercepted Buffer and http.ServerResponse * * NOTE: must set options.selfHandleResponse=true (prevent automatic call of res.end()) */ export declare function responseInterceptor(interceptor: Interceptor): (proxyRes: TReq, req: TReq, res: TRes) => Promise; export {};