import type { EditorState, LexicalEditor } from 'lexical'; type OnChange = (editorState: EditorState, editor: LexicalEditor) => void; /** * 检听内容变化 * - 忽略 selection 事件 * - 默认忽略首次 onChange 事件 (autofocus 开启时 editor 初始化后会自动触发 onChange) * * 注意: Editor#autofocus 与 OnChangePlugin 行为有关系: https://github.com/facebook/lexical/issues/4493 */ export declare function OnContentChangePlugin({ onChange, ignoreInitialChange, }: { onChange: OnChange; ignoreInitialChange?: boolean; }): import("react/jsx-runtime").JSX.Element; export {};