export interface IPeer { userId: string; receive(type: T, payload: P): boolean; } /** * enterRoom connects to the signaling room via WebSocket. */ export declare function enterRoom(params: { userId: string; worldId: string; room: string; host: string; onOpen?: () => void; onClose?: (ev: Pick) => void; onError?: () => void; logLine?: (direction: string, obj?: any) => void; onPeerJoined(users: IPeer[]): void; onPeerLeft(users: { userId: string; }[]): void; onIceUrl?(url: string, expiration: number): void; onMessage(type: T, payload: P, from: IPeer): void; autoRejoin?: boolean; }): { exitRoom: () => void; sendToServer:

(type: T, payload?: P) => void; }; //# sourceMappingURL=signal-room.d.ts.map