import { EnterRoom } from "./signal/signal-room"; export type SigType = "offer" | "answer" | "ice" | "request-ice" | "broadcast"; export type SigPayload = { connectionId?: string; offer?: RTCSessionDescriptionInit; answer?: RTCSessionDescriptionInit; ice?: RTCIceCandidateInit; } & Record; /** * Collect peers */ export declare function collectPeerConnections({ userId: passedUserId, worldId, receivePeerConnection, peerlessUserExpiration, enterRoomFunction: enterRoom, logLine, onLeaveUser, workerUrl, onRoomReady, onRoomClose, onBroadcastMessage, }: { userId?: string; worldId: string; enterRoomFunction?: EnterRoom; onLeaveUser?: (userId: string) => void; logLine?: (direction: string, obj?: any) => void; workerUrl?: URL; peerlessUserExpiration?: number; receivePeerConnection(connection: { pc: RTCPeerConnection; userId: string; restart?: () => void; }): void; onRoomReady?(info: { host: string; room: string; }): void; onRoomClose?(info: { host: string; room: string; ev: Pick; }): void; onBroadcastMessage?

(payload: P, from: string): void; }): { userId: string; enterRoom: ({ room, host, protocol, }: { room: string; host: string; protocol?: string; }) => Promise; exitRoom: ({ room, host }: { room: string; host: string; }) => void; leaveUser: (userId: string) => void; reset(userId: string): Promise; broadcast

(payload: P): void; end(): void; }; //# sourceMappingURL=webrtc-peer-collector.d.ts.map