UNPKG

voicebot-react-native-expo

Version:

This is a voicebot-react-native package of Kipps AI voice bot for React Native Expo

19 lines 880 B
import { ChatOptions, ReceivedChatMessage } from '@livekit/components-core'; /** * The `useChat` hook provides chat functionality for a LiveKit room. * It returns a simple `send` function to send chat messages and an array of `chatMessages` to hold received messages. * It also returns a `update` function that allows you to implement message-edit functionality. * @public */ export declare function useChat(options?: ChatOptions): { send: (message: string) => Promise<import('livekit-client').ChatMessage>; update: (message: string, originalMessageOrId: string | import('livekit-client').ChatMessage) => Promise<{ readonly message: string; readonly editTimestamp: number; readonly id: string; readonly timestamp: number; }>; chatMessages: ReceivedChatMessage[]; isSending: boolean; }; //# sourceMappingURL=useChat.d.ts.map