/**
 * Copyright (c) Microsoft Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { IncomingMessage } from 'http';
export declare class TestProxy {
    readonly HOST: string;
    readonly PORT: number;
    readonly URL: string;
    connectHosts: string[];
    requestUrls: string[];
    wsUrls: string[];
    private readonly _server;
    private readonly _sockets;
    private _handlers;
    static create(port: number): Promise<TestProxy>;
    private constructor();
    stop(): Promise<void>;
    forwardTo(port: number, options?: {
        allowConnectRequests?: boolean;
        removePrefix?: string;
        preserveHostname?: boolean;
    }): void;
    setAuthHandler(handler: (req: IncomingMessage) => boolean): void;
    reset(): void;
    private _prependHandler;
    private _onSocket;
}
export declare function setupSocksForwardingServer({ port, forwardPort, allowedTargetPort }: {
    port: number;
    forwardPort: number;
    allowedTargetPort: number;
}): Promise<{
    closeProxyServer: () => any;
    proxyServerAddr: string;
    connectHosts: any[];
}>;
//# sourceMappingURL=proxy.d.ts.map