react-chatbotify
Version:
A modern React library for creating flexible and extensible chatbots.
12 lines • 569 B
TypeScript
/**
* 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: Array<import("..").Message>) => void;
};
//# sourceMappingURL=useMessages.d.ts.map