import { Text } from 'slate'; import type { MarkdownEditorPlugin } from '../../plugin'; /** * 将 Slate 节点树解析为 Markdown 字符串。 * * @param tree - Slate 节点树。 * @param preString - 前缀字符串,默认为空字符串。 * @param parent - 父节点数组,默认为包含一个根节点的数组。 * @returns 解析后的 Markdown 字符串。 * * 该函数遍历 Slate 节点树,并根据节点类型和属性生成相应的 Markdown 字符串。 * 对于具有其他属性的节点,会将这些属性转换为 JSON 字符串并作为注释插入。 * 对于列表项、引用块、段落等不同类型的节点,会根据其特定的格式生成相应的 Markdown。 */ export declare const parserSlateNodeToMarkdown: (tree: any[], preString?: string, parent?: any[], plugins?: MarkdownEditorPlugin[]) => string; export declare const isMix: (t: Text) => boolean;