@rcb-plugins/markdown-renderer
Version:
A simple plugin for rendering markdown messages in React ChatBotify.
11 lines • 593 B
TypeScript
import { Flow, RcbChunkStreamMessageEvent, RcbPreInjectMessageEvent, RcbStartStreamMessageEvent } from 'react-chatbotify';
/**
* Helper function to determine if markdown rendering should occur.
*
* @param event specific message send event
* @param currFlow current flow used by the chatbot
* @param sender sender of the message
*/
declare const shouldRenderMarkdown: (event: RcbPreInjectMessageEvent | RcbStartStreamMessageEvent | RcbChunkStreamMessageEvent, currFlow: Flow, sender: string) => boolean;
export { shouldRenderMarkdown };
//# sourceMappingURL=renderConditionHelper.d.ts.map