import type { IPeer } from "./impl/signal-room.js"; export declare function enterRoom({ userId, worldId, room, host, autoRejoin, onOpen, onClose, onError, onPeerJoined, onPeerLeft, onIceUrl, onMessage, logLine, workerUrl, }: { userId: string; worldId: string; room: string; host: string; autoRejoin?: boolean; onOpen?: () => void; onClose?: (ev: Pick) => void; onError?: () => void; onPeerJoined: (users: IPeer[]) => void; onPeerLeft: (users: { userId: string; }[]) => void; onIceUrl?(url: string, expiration: number): void; onMessage: (type: T, payload: P, from: IPeer) => void; logLine?: (direction: string, obj?: any) => void; workerUrl?: URL; }): { exitRoom: () => void; sendToServer:

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