import '../md/chat-md-code'; import Cherry from 'cherry-markdown/dist/cherry-markdown.core'; import type { CherryOptions } from 'cherry-markdown/types/cherry'; import { Component } from 'omi'; /** markdown插件预设 */ export type TdChatContentMDPresetPlugin = 'katex'; export interface TdChatContentMDPresetConfig { preset: TdChatContentMDPresetPlugin; /** 是否开启 */ enabled?: boolean; /** 插件参数 */ options?: any; } export type TdChatContentMDPluginConfig = /** 预设插件配置 */ TdChatContentMDPresetConfig; export type TdChatContentMDOptions = Omit & { themeSettings?: { codeBlockTheme?: 'light' | 'dark'; }; }; export interface TdChatMarkdownContentProps { content?: string; options?: TdChatContentMDOptions; } export default class ChatCherryMDContent extends Component { static css: any[]; static propTypes: { content: StringConstructor; options: ObjectConstructor; }; static defaultProps: Partial; mdRef: Partial>; md: Cherry | null; isMarkdownInit: import("omi").SignalValue; /** 传入cherryMarkdown的配置 */ private markdownOptions; ready(): void; initMarkdown: () => Promise; getTextInfo(): void; parseMarkdown(markdown: string): string; render(): JSX.Element; }