import { type Editor } from 'slate'; import type { MarkdownEditorPlugin } from '../../plugin'; /** 解析单个插件在 composition key 中的 `withEditor` 槽位标识 */ export declare function getWithEditorSlotKey(plugin: MarkdownEditorPlugin): string; /** * 检测 `withEditor` 栈是否变化,用于 Slate 子树 remount。 * 比较插件顺序、是否含 `withEditor`、以及 `withEditorKey` / 具名函数名(匿名函数均为 `w`)。 * 仅替换匿名 `withEditor` 实现且未设 `withEditorKey` 时 **不会** remount。 */ export declare function getPluginsEditorCompositionKey(plugins?: MarkdownEditorPlugin[]): string; /** 构建带 Markdown 插件栈的 Slate 编辑器实例(含 history、React、错误日志包装) */ export declare function createMarkdownSlateEditor(plugins?: MarkdownEditorPlugin[]): Editor;