import NativeEvents from '../../utils/NativeEvents'; import type { UnsubscribeFunction } from '../conference/models'; import type { MessageReceivedEventType } from './events'; /** The CommandService allows the application to send and receive text messages and notifications during a conference. */ export declare class CommandService { /** @internal */ _nativeModule: any; /** @internal */ _nativeEvents: NativeEvents; /** * Sends a message to all conference participants. * @param message The message to send. */ send(message: string): Promise; /** * Adds a listener to the event informing about new messages received. * @param handler An event callback function. * @returns A function that unsubscribes from event listeners. */ onMessageReceived(handler: (data: MessageReceivedEventType) => void): UnsubscribeFunction; } declare const _default: CommandService; export default _default;