import { Request, Response, NextFunction } from "express";
import { IncomingMessage } from "http";
import { ProxyOptions } from "./lib/models";
export declare class Proxy {
    private transport;
    private agent;
    constructor(config: ProxyOptions);
    private onError;
    express: () => (req: Request, res: Response, next: NextFunction) => any;
    stream: (req: IncomingMessage) => Promise<any>;
}
