import { Node } from 'mdast'; import React from 'react'; import { Editor, NodeEntry } from 'slate'; import { ElementProps, Elements } from './el'; export type MarkdownEditorPlugin = { elements?: Record>>; parseMarkdown?: { match: (node: Node) => boolean; convert: (node: Node) => Elements | NodeEntry; }[]; toMarkdown?: { match: (node: Elements) => boolean; convert: (node: Elements) => Node; }[]; withEditor?: (editor: Editor) => Editor; hotkeys?: Record void>; onPaste?: (text: string) => boolean; }; export declare const PluginContext: React.Context;