import { HttpWithJSONRpc } from '../../utils/http-with-json-rpc'; import EventEmitter from 'eventemitter3'; export declare class RoomApiClient extends HttpWithJSONRpc { private roomId; private participantId; private sign; protected emitter: EventEmitter; constructor(); setRoomId(roomId: string): Promise; setParticipantId(participantId: string): Promise; sendEnterRoom(): Promise & { result: EnterRoomResponse; }>; sendCreateSession(direction: string, index: number, sdp: CreateSessionParams['desc']): Promise & { result: CreateSessionResponse; }>; sendAddCandidate(direction: string, index: number, candidate: AddCandidateParams['candidate']): Promise & { result: AddCandidateResponse; }>; sendRestartIce(direction: string, index: number, sdp: RestartIceParams['desc']): Promise & { result: CreateSessionResponse; }>; sendDestroySession(direction: string, index: number): Promise & { result: DestroySessionResponse; }>; on(name: string, callback: (eventData: T) => void): void; } declare type EnterRoomResponse = { roomId: string; participantId: string; sign: string; }; declare type CreateSessionParams = { roomId: string; participantId: string; sign: string; direction: string; index: number; desc: RTCSessionDescriptionInit; }; declare type CreateSessionResponse = { desc: RTCSessionDescriptionInit; }; declare type AddCandidateParams = { roomId: string; participantId: string; sign: string; direction: string; index: number; candidate: RTCIceCandidate; }; declare type AddCandidateResponse = {}; declare type RestartIceParams = { roomId: string; participantId: string; sign: string; direction: string; index: number; desc: RTCSessionDescriptionInit; }; declare type DestroySessionResponse = {}; export {};