import { SignalClientMessage } from "../shared/types";
import { Room, RoomOptions } from "./room";
export declare class YjsWebRTCProvider {
    private rtcOptions;
    private readonly signalingConnections;
    private readonly rooms;
    private peerInitiator;
    constructor(signallingServers: string[], rtcOptions?: RTCConfiguration);
    joinRoom(roomName: string, options: RoomOptions): Room;
    leaveRoom(roomName: string): void;
    private onSignal;
    private onAnnounce;
    /** @internal **/
    sendSignal(msg: SignalClientMessage): void;
    private createSignallingConnection;
    dispose(): Promise<void>;
}
