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T license.\r\n\r\nimport { PropertyCollection, SpeechTranslationConfig } from \"../Exports.js\";\r\nimport { IParticipant, IUser, TranscriptionParticipant } from \"./IParticipant.js\";\r\n\r\nexport type Callback = (result?: any) => void;\r\n\r\n/**\r\n * Manages meetings.\r\n */\r\nexport interface IMeeting {\r\n\r\n config: SpeechTranslationConfig;\r\n\r\n /**\r\n * Gets/sets authorization token used to communicate with the service.\r\n * Note: The caller needs to ensure that the authorization token is valid. Before the authorization token\r\n * expires, the caller needs to refresh it by calling this setter with a new valid token.\r\n * Otherwise, the recognizer will encounter errors during recognition.\r\n */\r\n authorizationToken: string;\r\n\r\n /** Gets the unique identifier for the current meeting. */\r\n readonly meetingId: string;\r\n\r\n /** Gets the collection of properties and their values defined for this instance. */\r\n readonly properties: PropertyCollection;\r\n\r\n /** Gets the language name that is used for recognition. */\r\n readonly speechRecognitionLanguage: string;\r\n\r\n /** Start a meeting.\r\n * The host must connect to the websocket within a minute for the meeting to remain open.\r\n */\r\n startMeetingAsync(cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /** Delete a meeting. After this no one will be able to join the meeting. */\r\n deleteMeetingAsync(cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /** End a meeting. */\r\n endMeetingAsync(cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /** Lock a meeting. This will prevent new participants from joining. */\r\n lockMeetingAsync(cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /**\r\n * Mute all other participants in the meeting. After this no other participants will\r\n * have their speech recognitions broadcast, nor be able to send text messages.\r\n */\r\n muteAllParticipantsAsync(cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /**\r\n * Mute a participant.\r\n * @param userId A user identifier\r\n */\r\n muteParticipantAsync(userId: string, cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /**\r\n * Remove a participant from a meeting using the user id, Participant or User object\r\n * @param userId A user identifier\r\n */\r\n removeParticipantAsync(userId: string | IParticipant | IUser, cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /** Unlocks a meeting. */\r\n unlockMeetingAsync(): void;\r\n\r\n /** Unmute all other participants in the meeting. */\r\n unmuteAllParticipantsAsync(cb?: () => void, err?: (e: string) => void): void;\r\n\r\n /**\r\n * Unmute a participant.\r\n * @param userId A user identifier\r\n */\r\n unmuteParticipantAsync(userId: string, cb?: () => void, err?: (e: string) => void): void;\r\n\r\n}\r\n\r\nexport interface MeetingProperties {\r\n [key: string]: any;\r\n id?: string;\r\n attendees?: TranscriptionParticipant[];\r\n record?: string;\r\n}\r\n\r\nexport interface MeetingInfo {\r\n id: string;\r\n participants: TranscriptionParticipant[];\r\n meetingProperties: MeetingProperties;\r\n}\r\n"]}