interface WebRTCPeer { id: string; lastSeen: number; state: 'connecting' | 'open' | 'closed' | 'failed'; } declare function initWebRTC(): Promise; declare function sendWebRTC(msg: string): void; declare function onWebRTC(cb: (msg: string, from?: string) => void): () => void; declare function getWebRTCPeers(): WebRTCPeer[]; declare function getWebRTCPeerId(): string; declare function closeWebRTC(): void; export { type WebRTCPeer, closeWebRTC, getWebRTCPeerId, getWebRTCPeers, initWebRTC, onWebRTC, sendWebRTC };