UNPKG

sandeep-react-chatbotify

Version:

A modern React library for creating flexible and extensible chatbots.

13 lines 596 B
/// <reference types="react" /> /** * External custom hook for managing messages. */ export declare const useMessages: () => { 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: import("..").Message[]; replaceMessages: (newMessages: import("..").Message[]) => void; }; //# sourceMappingURL=useMessages.d.ts.map