import type { ParticipantInfo } from '../conference/models'; import type { Participant } from '../conference/models'; /** * The SessionService allows opening and closing sessions. Opening a session is mandatory before interacting with any service. */ export declare class SessionService { /** @internal */ _nativeModule: any; /** * Closes the current session. */ close(): Promise; /** * Provides the local participant object that belongs to the current session. */ getParticipant(): Promise; /** * Returns if a session that connects the SDK with the Dolby.io platform is opened or not. */ isOpen(): Promise; /** * Opens a new session. If you initialize the SDK with a [client access token](ref:get-client-access-token), provide the external ID in the REST API request, not in the open method. Otherwise, you may expect the platform to either ignore the external ID provided in the open method or receive an error if the provided ID is different from the one provided in the REST API request. * **Note**: The external ID field in this API has been deprecated; now you can provide the external ID only when requesting a [client access token](ref:get-client-access-token). If you provide to this API an external ID that is different from the one in your client access token, it will be rejected. * @param participantInfo The optional information about the local participant. */ open(participantInfo?: ParticipantInfo): Promise; /** * Updates the local participant's name and avatar URL. This method is supported in SDK 3.10 and later. */ updateParticipantInfo(name: String, avatarUrl: String): Promise; } declare const _default: SessionService; export default _default;