import { CertificateKeyType, DscpValue } from '../types'; import BaseElement from './base-element'; export declare class WebRtcEndpoint extends BaseElement { recvonly: boolean; sendonly: boolean; useDataChannels: boolean; certificateKeyType: CertificateKeyType; qosDscp: DscpValue; constructor(objId: string, recvonly: boolean, sendonly: boolean, useDataChannels: boolean, certificateKeyType: CertificateKeyType, qosDscp: DscpValue); getObjectId(): string; sendLocalOffer(offer: string): Promise; gatherCandidates(): Promise<{ sessionId: string; } | null>; addIceCandidate(candidate: RTCIceCandidate): Promise<{ sessionId: string; } | null>; createDataChannel(dataChannelOpts?: { label?: string; ordered?: boolean; maxPacketLifeTime?: number; maxRetransmits?: number; protocol?: string; }): Promise; closeDataChannel(channelId: string): Promise<{ sessionId: string; } | null>; }