UNPKG

sandeep-react-chatbotify

Version:

A modern React library for creating flexible and extensible chatbots.

14 lines 649 B
/// <reference types="react" /> import { Message } from "../../types/Message"; /** * Internal custom hook for managing sending of messages. */ export declare const useMessagesInternal: () => { endStreamMessage: (sender?: string) => Promise<boolean>; injectMessage: (content: string | JSX.Element, sender?: string) => Promise<string | null>; removeMessage: (messageId: string) => Promise<string | null>; streamMessage: (content: string | JSX.Element, sender?: string) => Promise<string | null>; messages: Message[]; replaceMessages: (newMessages: Array<Message>) => void; }; //# sourceMappingURL=useMessagesInternal.d.ts.map