/**
 * 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 http from 'http';
export declare class CDPRelayServer {
    private _wsHost;
    private _browserChannel;
    private _executablePath?;
    private _cdpPath;
    private _extensionPath;
    private _wss;
    private _cdpConnection;
    private _extensionConnection;
    private _protocolVersion;
    private _handler;
    private _extensionConnectionPromise;
    constructor(server: http.Server, browserChannel: string, executablePath?: string);
    cdpEndpoint(): string;
    extensionEndpoint(): string;
    establishExtensionConnection(clientName: string): Promise<void>;
    private _openConnectPageInBrowser;
    stop(): void;
    private _closeConnections;
    private _onConnection;
    private _handlePlaywrightConnection;
    private _closeExtensionConnection;
    private _closeCDPConnection;
    private _handleExtensionConnection;
    private _handlePlaywrightMessage;
    private _handleCDPCommand;
    private _sendToCDPClient;
}
//# sourceMappingURL=cdpRelay.d.ts.map