import { Transport } from './transport';
type MessageType = string | ArrayBufferLike | Blob | ArrayBufferView;
export declare class BridgeTransport implements Transport {
    addEventListener: () => any;
    dispatchEvent: () => any;
    removeEventListener: () => any;
    private _onclose;
    private _onerror;
    private _onmessage;
    private _onopen;
    private messageQueue;
    private isSending;
    constructor(addr: string);
    close(): void;
    private sendNextMessage;
    enqueueMessage(message: MessageType): void;
    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
    get onmessage(): ((ev: MessageEvent) => any) | null;
    set onmessage(fn: ((ev: MessageEvent) => any) | null);
    get onopen(): ((ev: Event) => any) | null;
    set onopen(fn: ((ev: Event) => any) | null);
    get onclose(): ((ev: CloseEvent) => any) | null;
    set onclose(fn: ((ev: CloseEvent) => any) | null);
    get onerror(): ((ev: Event) => any) | null;
    set onerror(fn: ((ev: Event) => any) | null);
}
export {};
//# sourceMappingURL=bridge-transport.d.ts.map