/**
 * 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 { EventEmitter } from 'events';
import type * as channels from '@protocol/channels';
export type ProtocolRequest = {
    id: number;
    method: string;
    params: any;
};
export type ProtocolResponse = {
    id?: number;
    method?: string;
    error?: {
        message: string;
        data: any;
    };
    params?: any;
    result?: any;
};
export interface ConnectionTransport {
    send(s: ProtocolRequest): void;
    close(): void;
    isClosed(): boolean;
    onmessage?: (message: ProtocolResponse) => void;
    onclose?: () => void;
}
export declare class Backend extends EventEmitter {
    private static _lastId;
    private _callbacks;
    private _transport;
    channel: channels.DebugControllerChannel;
    constructor();
    connect(wsEndpoint: string): Promise<void>;
    initialize(): Promise<void>;
    close(): Promise<void>;
    private _send;
}
//# sourceMappingURL=debugControllerBackend.d.ts.map