UNPKG

@elevenlabs/react-native

Version:

ElevenLabs React Native SDK for Conversational AI

24 lines (23 loc) 1.11 kB
import React from 'react'; import type { LocalParticipant } from 'livekit-client'; import type { Callbacks, ClientToolsConfig, AudioSessionConfig } from '../types'; interface LiveKitRoomWrapperProps { children: React.ReactNode; serverUrl: string; token: string; connect: boolean; onConnected: () => void; onDisconnected: () => void; onError: (error: Error) => void; roomConnected: boolean; callbacks: Callbacks; onParticipantReady: (participant: LocalParticipant) => void; sendMessage: (message: unknown) => void; clientTools: ClientToolsConfig['clientTools']; onEndSession: (reason?: "user" | "agent") => void; updateCurrentEventId?: (eventId: number) => void; audioSessionConfig?: AudioSessionConfig; textOnly?: boolean; } export declare const LiveKitRoomWrapper: ({ children, serverUrl, token, connect, onConnected, onDisconnected, onError, roomConnected, callbacks, onParticipantReady, sendMessage, clientTools, updateCurrentEventId, onEndSession, audioSessionConfig, textOnly, }: LiveKitRoomWrapperProps) => React.JSX.Element; export {};