import type { Editor, NodeJSON } from 'prosekit/core'; import type { EditorExtension } from '../extensions.js'; export interface NodeConfig { displayName: string; description: string; group: string; icon: string; previewImg?: string; previewHTML?: string; handleMenu?: boolean; slashMenu?: boolean; transformable?: boolean; transform?: (currentNode: NodeJSON) => { type: string; attrs?: any; }; onSelect: () => void; } export interface MdcEditorConfig { convertMarkdownToNode: (markdown: string) => Promise; onSearchPage: (query: string) => void; colors: { text: string[]; bg: string[]; }; components: NodeConfig[]; } export declare function getConfig(editor: Editor): Promise;