import { Context } from '../Types'; import { PeerManager } from './PeerManager'; export declare const PEER_CONTEXT: Context; export declare function initializePeerContext(manager: PeerManager): void; export declare function isPeerContext(): boolean; export declare function executeInPeerContext(func: Function): any; export declare function getPeerId(): Promise; export declare function getPeerConnections(): string[]; export declare function sendToPeer(peerId: string, data: any): void; export declare function broadcastToPeers(data: any): void; export declare function onPeerMessage(callback: (peerId: string, data: any) => void): void; export declare function connectToPeer(peerId: string, peerUrl: string): void; export declare function disconnectFromPeer(peerId: string): void; export declare function getPeerLatency(peerId: string): number;