import { HMSWebrtcStats } from './HMSWebrtcStats'; import { EventBus } from '../events/EventBus'; import { IStore } from '../sdk/store'; export declare class HMSWebrtcInternals { private readonly store; private readonly eventBus; private publishConnection?; private subscribeConnection?; private readonly TAG; private readonly interval; private isMonitored; private hmsStats?; constructor(store: IStore, eventBus: EventBus, publishConnection?: RTCPeerConnection | undefined, subscribeConnection?: RTCPeerConnection | undefined); getPublishPeerConnection(): RTCPeerConnection | undefined; getSubscribePeerConnection(): RTCPeerConnection | undefined; getCurrentStats(): HMSWebrtcStats | undefined; onStatsChange(statsChangeCb: (stats: HMSWebrtcStats) => void): () => void; private handleStatsUpdate; /** * * @internal */ setPeerConnections({ publish, subscribe }: { publish?: RTCPeerConnection; subscribe?: RTCPeerConnection; }): void; /** * @internal */ start(): Promise; private stop; private startLoop; /** * @internal */ cleanup(): void; }