import NativeEvents from '../../utils/NativeEvents'; import type { Conference, UnsubscribeFunction, ParticipantInvited } from '../conference/models'; import type { ConferenceCreatedEventType, ConferenceStatusEventType, ConferenceEndedEventType, InvitationReceivedEventType, ParticipantJoinedEventType, ParticipantLeftEventType, ActiveParticipantsEventType } from './events'; import type { Subscription } from './models'; /** * The NotificationService allows inviting participants to a conference and subscribing to and unsubscribing from notifications. */ export declare class NotificationService { /** @internal */ _nativeModule: any; /** @internal */ _nativeEvents: NativeEvents; /** * Subscribes to the specified notifications. This method is supported in SDK 3.8 and later. * @param events An array of the subscribed subscription types. */ subscribe(events: Subscription[]): Promise; /** * Unsubscribes from the specified notifications. This method is supported in SDK 3.8 and later. * @param events An array of the subscribed subscription types. */ unsubscribe(events: Subscription[]): Promise; /** * Declines the conference invitation. * @param conference The conference object. */ decline(conference: Conference): Promise; /** * Notifies conference participants about a conference invitation. * @param conference The conference object. * @param participants Information about the invited application users. */ invite(conference: Conference, participants: ParticipantInvited[]): Promise; /** * Adds a listener to the invitation received event. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onInvitationReceived(handler: (data: InvitationReceivedEventType) => void): UnsubscribeFunction; /** * Adds a listener to the conference status event. This API is supported in SDK 3.8 and later. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onConferenceStatus(handler: (data: ConferenceStatusEventType) => void): UnsubscribeFunction; /** * Adds a listener to the conference created event. This API is supported in SDK 3.8 and later. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onConferenceCreated(handler: (data: ConferenceCreatedEventType) => void): UnsubscribeFunction; /** * Adds a listener to the conference ended event. This API is supported in SDK 3.8 and later. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onConferenceEnded(handler: (data: ConferenceEndedEventType) => void): UnsubscribeFunction; /** * Adds a listener to the participant joined event. This API is supported in SDK 3.8 and later. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onParticipantJoined(handler: (data: ParticipantJoinedEventType) => void): UnsubscribeFunction; /** * Adds a listener to the participant left event. This API is supported in SDK 3.8 and later. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onParticipantLeft(handler: (data: ParticipantLeftEventType) => void): UnsubscribeFunction; /** * Adds a listener to the participant active event. This API is supported in SDK 3.8 and later. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onActiveParticipants(handler: (data: ActiveParticipantsEventType) => void): UnsubscribeFunction; } declare const _default: NotificationService; export default _default;