UNPKG

@xapp/chat-widget

Version:
18 lines (17 loc) 746 B
import 'rollup-plugin-inject-process-env'; import { FC } from "react"; import { ChatUserInfo } from "@xapp/stentor-chat-widget"; import { ChatMsgDetail, ToolCallInfo } from "../../store/ChatAction"; import "./ChatTextMessage.scss"; export declare function parseMarkdown(text: string): string; export interface ChatTextMessageProps { readonly message: ChatMsgDetail; readonly sibling: boolean; /** Agent/user info for avatar rendering */ readonly user?: ChatUserInfo; /** Tool calls to display above the message bubble */ readonly toolCalls?: ToolCallInfo[]; /** When true, shows expanded debug info for tool calls */ readonly debugMode?: boolean; } export declare const ChatTextMessage: FC<ChatTextMessageProps>;