export interface JitsiApi { executeCommand(command: string, options?: any): void; executeCommands(commands: any): void; captureLargeVideoScreenshot(): Promise<{ dataURL: string; }>; getAvailableDevices(): Promise; getCurrentDevices(): Promise; getLivestreamUrl(): Promise; getParticipantsInfo(): Array; getVideoQuality(): any; isDeviceChangeAvailable(deviceType: 'output' | 'input' | undefined): Promise; isDeviceListAvailable(): Promise; isMultipleAudioInputSupported(): Promise; pinParticipant(participantId: string): void; resizeLargeVideo(width: string | number, height: string | number): void; setAudioInputDevice(deviceLabel: string, deviceId: string): void; setAudioOutputDevice(deviceLabel: string, deviceId: string): void; setLargeVideoParticipant(participantId: string): void; setVideoInputDevice(deviceLabel: string, deviceId: string): void; startRecording(options?: any): Promise; stopRecording(options?: any): Promise; getNumberOfParticipants(): number; getAvatarURL(participantId: string): string; getDisplayName(participantId: string): string; getEmail(participantId: string): string; getIFrame(): any; isAudioMuted(): Promise; isVideoMuted(): Promise; isAudioAvailable(): Promise; isVideoAvailable(): Promise; invite(participants: Array): Promise; dispose(): void; removeListener(event: string, callback: Function): void; addListener(event: string, callback: Function): void; } export interface JitsiIframeOptions { parentNode: any; roomName: string; jwt?: string; width?: string | number; height?: string | number; invitees?: Array; devices?: Array<{ audioInput?: string; audioOutput?: string; videoInput?: string; }>; userInfo?: { email?: string; displayName?: string; }; configOverwrite?: JitsiConfigOverwrites; interfaceConfigOverwrite?: JitsiInterfaceConfigOverwrites; onload?: Function; } export interface JitsiConfigOverwrites { disableAudioLevels?: boolean; disableDeepLinking?: boolean; disableRecordAudioNotification?: boolean; disableRemoteMute?: boolean; disableTileView?: boolean; enableNoisyMicDetection?: boolean; hideConferenceTimer?: boolean; iAmRecorder?: boolean; iAmSipGateway?: boolean; prejoinPageEnabled?: boolean; remoteVideoMenu?: { disableKick?: boolean; }; startWithAudioMuted?: boolean; startWithVideoMuted?: boolean; subject?: string; } export interface JitsiInterfaceConfigOverwrites { APP_NAME?: string; CONNECTION_INDICATOR_DISABLED?: boolean; DISABLE_DOMINANT_SPEAKER_INDICATOR?: boolean; DISABLE_FOCUS_INDICATOR?: boolean; DISABLE_JOIN_LEAVE_NOTIFICATIONS?: boolean; DISABLE_VIDEO_BACKGROUND?: boolean; TOOLBAR_BUTTONS?: Array; VIDEO_QUALITY_LABEL_DISABLED?: boolean; } export interface JitsiDeviceOptions { audioInput: JitsiDevice[]; audioOutput: JitsiDevice[]; videoInput: JitsiDevice[]; } export interface JitsiDevice { deviceId: string; groupId: string; kind: string; label: string; } export interface JitsiCameraErrorEvent { type: string; message: string; } export interface JitsiMicErrorEvent { type: string; message: string; } export interface JitsiAudioMuteStatusChangedEvent { muted: boolean; } export interface JitsiVideoMuteStatusChangedEvent { muted: boolean; } export interface JitsiDominantSpeakerChangedEvent { id: string; } export interface JitsiDisplayNameChangeEvent { id: string; displayName: string; } export interface JitsiDeviceListChangedEvent { devices: JitsiDeviceOptions; } export interface JitsiParticipantJoinedEvent { id: string; displayName: string; } export interface JitsiParticipantLeftEvent { id: string; } export interface JitsiScreenSharingStatusChangedEvent { on: boolean; details: { sourceType?: 'window' | 'screen' | 'proxy' | 'device'; }; } export interface JitsiLogEvent { logLevel: string; args: string; } export interface JitsiVideoConferenceJoinedEvent { id: string; roomName: string; displayName: string; avatarURL: string; } export interface JitsiVideoConferenceLeftEvent { id: string; roomName: string; displayName: string; avatarURL: string; } export interface JitsiConferenceInfo { subject?: string; displayName?: string; avatarUrl?: string; } export interface JitsiLocalStatsUpdatedEvent { stats: JitsiLocalStats; } export interface JitsiRemoteStatsUpdatedEvent { id: string; stats: JitsiConnectionStats; } export interface JitsiConnectionStats { bitrate: { upload: number; download: number; audio: { upload: number; download: number; }; video: { upload: number; download: number; }; }; connectionQuality: number; jvbRTT: number; maxEnabledResolution: number; packetLoss: { total: number; download: number; upload: number; }; } export interface JitsiLocalStats extends JitsiConnectionStats { bandwidth: { download: number; upload: number; }; resolution: { [key: string]: { [key: string]: { height: number; width: number; }; }; }; framerate: { [key: string]: { [key: string]: number; }; }; codec: { [key: string]: { [key: string]: { audio: string; video: string; }; }; }; transport: any[]; avgAudioLevels: any; } export interface JitsiRemoteStats { [key: string]: JitsiConnectionStats; }