/**
 * 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.
 */
export declare function debugLog(...args: unknown[]): void;
export declare class RelayConnection {
    private _ws;
    private _handler;
    private _attachedTabs;
    private _hasEverAttached;
    private _eventListeners;
    private _closed;
    onclose?: () => void;
    ontabattached?: (tabId: number) => void;
    ontabdetached?: (tabId: number) => void;
    get attachedTabs(): ReadonlySet<number>;
    constructor(ws: WebSocket, protocolVersion: number);
    didInitialize(): void;
    close(message: string): void;
    attachTab(tab: chrome.tabs.Tab): void;
    detachTab(tabId: number): void;
    private _notifyTabAttached;
    private _notifyTabDetached;
    private _installEventForwarders;
    private _onClose;
    private _checkLastTabDetached;
    private _onChromeEvent;
    private _tabIdForEventArgs;
    private _onMessage;
    private _onMessageAsync;
    private _sendError;
    private _sendMessage;
}
//# sourceMappingURL=relayConnection.d.ts.map