import { IWebrtcTextSimple } from "../type"; import SignalSimple from "./signal-simple"; export default class WebRtcTextSimple { private _peerConnection?; private _pcConfig?; private _signal?; private _imageElement?; private buildTextOfferMessage?; private buildTextCandidateMessage?; private _imageStreamChannel?; private readonly _earlyCandidates; constructor(option: IWebrtcTextSimple); peerConnection(): RTCPeerConnection | undefined; setSignal: (signal: SignalSimple) => void; get imageStreamChannel(): RTCDataChannel | undefined; private _gatherCandidate; private _handleCreateOffer; initPeer: () => void; handleReceiveAnswer: (descriptionInitDict: RTCSessionDescriptionInit) => void; handleReceiveCandidate: (candidate: any) => void; requestImageChannel: () => void; }