/** * @module LiveTranscription */ import { Subscription } from "rxjs"; import { DataChannel } from "./dataChannel.model"; import { LiveTranscriptionMessage } from "./webConferenceSession.model"; export declare enum LiveTranscriptionStatus { INVITED = "INVITED", CONNECTED = "CONNECTED", CLOSED = "CLOSED" } /** * @eventProperty */ export declare enum LiveTranscriptionEvents { /** * @eventProperty ON_MESSAGE_RECEIVED * This RB event is fired when a new message has been received */ ON_MESSAGE_RECEIVED = "ON_MESSAGE_RECEIVED" } export interface LiveTranscription { status: LiveTranscriptionStatus; language?: string; messages: LiveTranscriptionMessage[]; accept(): Promise; subscribe(handler: any): Subscription; } /** @internal */ export declare class LiveTranscriptionRB implements LiveTranscription { private dataChannel; subscription?: Subscription; language: string; private _status; private rxSubject; messages: LiveTranscriptionMessage[]; translatedMessages: []; static create(dataChannel: DataChannel): LiveTranscriptionRB; private constructor(); /** * @public * @function subscribe * @instance * @description * Subscribe to updates from the service (all events are of RBEvent type {name: string, data:any}); * Here's a list of events received : * NB There might be some events that are not documented here, they're send on updates of different properties of the contact. * @param {any} handler The call-back function that will be subscribed to the RxJS subject * @returns {Subscription} Returns RxJS Subscription */ subscribe(handler: any): Subscription; sendEvent(name: string, data?: any): void; stop(): void; set status(status: LiveTranscriptionStatus); get status(): LiveTranscriptionStatus; accept(): Promise; private cleanString; } //# sourceMappingURL=transcription.model.d.ts.map