import type { App } from 'vue'; import type { SDOptions } from '../_utils/types'; import _RichTextEditor from './rich-text-editor.vue'; declare const RichTextEditor: { new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins & Readonly<{ onUpdate?: ((context: import("./types").RichTextEditorChangeContext) => any) | undefined; onError?: ((error: Error) => any) | undefined; onFocus?: ((event: FocusEvent) => any) | undefined; onBlur?: ((event: FocusEvent) => any) | undefined; onChange?: ((value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any) | undefined; "onUpdate:modelValue"?: ((value: import("./types").RichTextEditorValue) => any) | undefined; onReady?: ((editor: import("lexical").LexicalEditor) => any) | undefined; }>, { readonly editor: import("lexical").LexicalEditor | null; readonly editorState: import("lexical").EditorState | null; readonly rootElement: HTMLDivElement | null; readonly canUndo: boolean; readonly canRedo: boolean; focus: (callback?: () => void, options?: import("./types").RichTextEditorFocusOptions) => void; blur: () => void | undefined; clear: () => void; undo: () => boolean; redo: () => boolean; getJSON: () => import("lexical").SerializedEditorState | undefined; setJSON: (value: import("./types").RichTextEditorValue | string, options?: import("lexical").EditorSetOptions) => void; getContent: () => import("./types").RichTextEditorContentSnapshot[]; setContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("lexical").EditorUpdateOptions) => void; insertContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("./types").RichTextEditorInsertOptions) => void; getText: () => string; getHTML: () => string; setHTML: (html: string, options?: import("lexical").EditorUpdateOptions) => void; getMarkdown: (transformers?: readonly import("@lexical/markdown").Transformer[]) => string; setMarkdown: (markdown: string, transformers?: readonly import("@lexical/markdown").Transformer[], options?: import("lexical").EditorUpdateOptions) => void; insertText: (text: string, options?: import("./types").RichTextEditorInsertOptions) => void; insertComponent: (data: import("./types").RichTextEditorComponentNodeData, options?: import("./types").RichTextEditorInsertOptions) => void; updateComponent: (nodeKey: import("lexical").NodeKey, value: import("type-fest").JsonValue, options?: import("lexical").EditorUpdateOptions) => void; removeComponent: (nodeKey: import("lexical").NodeKey, options?: import("lexical").EditorUpdateOptions) => void; formatText: (format: import("lexical").TextFormatType) => boolean; read: (callback: () => T) => T | undefined; update: (callback: () => void, options?: import("lexical").EditorUpdateOptions) => void | undefined; dispatchCommand: (command: import("lexical").LexicalCommand, payload: T) => boolean; registerCommand: (command: import("lexical").LexicalCommand, listener: import("lexical").CommandListener, priority: import("lexical").CommandListenerPriority) => () => void; registerUpdateListener: (listener: import("lexical").UpdateListener) => () => void; registerMutationListener: (klass: import("lexical").Klass, listener: import("lexical").MutationListener, options?: import("./types").RichTextEditorMutationListenerOptions) => () => void; registerNodeTransform: (klass: import("lexical").Klass, listener: import("lexical").Transform) => () => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { update: (context: import("./types").RichTextEditorChangeContext) => any; error: (error: Error) => any; focus: (event: FocusEvent) => any; blur: (event: FocusEvent) => any; change: (value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any; "update:modelValue": (value: import("./types").RichTextEditorValue) => any; ready: (editor: import("lexical").LexicalEditor) => any; }, import("vue").PublicProps, { classNames: Partial>; autoSize: boolean | import("./types").RichTextEditorAutoSize; styles: Partial>; plugins: readonly import("./types").RichTextEditorPlugin[]; transformers: readonly import("@lexical/markdown").Transformer[]; history: boolean; historyDelay: number; historyMaxDepth: number | null; spellcheck: boolean; }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly & Readonly<{ onUpdate?: ((context: import("./types").RichTextEditorChangeContext) => any) | undefined; onError?: ((error: Error) => any) | undefined; onFocus?: ((event: FocusEvent) => any) | undefined; onBlur?: ((event: FocusEvent) => any) | undefined; onChange?: ((value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any) | undefined; "onUpdate:modelValue"?: ((value: import("./types").RichTextEditorValue) => any) | undefined; onReady?: ((editor: import("lexical").LexicalEditor) => any) | undefined; }>, { readonly editor: import("lexical").LexicalEditor | null; readonly editorState: import("lexical").EditorState | null; readonly rootElement: HTMLDivElement | null; readonly canUndo: boolean; readonly canRedo: boolean; focus: (callback?: () => void, options?: import("./types").RichTextEditorFocusOptions) => void; blur: () => void | undefined; clear: () => void; undo: () => boolean; redo: () => boolean; getJSON: () => import("lexical").SerializedEditorState | undefined; setJSON: (value: import("./types").RichTextEditorValue | string, options?: import("lexical").EditorSetOptions) => void; getContent: () => import("./types").RichTextEditorContentSnapshot[]; setContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("lexical").EditorUpdateOptions) => void; insertContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("./types").RichTextEditorInsertOptions) => void; getText: () => string; getHTML: () => string; setHTML: (html: string, options?: import("lexical").EditorUpdateOptions) => void; getMarkdown: (transformers?: readonly import("@lexical/markdown").Transformer[]) => string; setMarkdown: (markdown: string, transformers?: readonly import("@lexical/markdown").Transformer[], options?: import("lexical").EditorUpdateOptions) => void; insertText: (text: string, options?: import("./types").RichTextEditorInsertOptions) => void; insertComponent: (data: import("./types").RichTextEditorComponentNodeData, options?: import("./types").RichTextEditorInsertOptions) => void; updateComponent: (nodeKey: import("lexical").NodeKey, value: import("type-fest").JsonValue, options?: import("lexical").EditorUpdateOptions) => void; removeComponent: (nodeKey: import("lexical").NodeKey, options?: import("lexical").EditorUpdateOptions) => void; formatText: (format: import("lexical").TextFormatType) => boolean; read: (callback: () => T) => T | undefined; update: (callback: () => void, options?: import("lexical").EditorUpdateOptions) => void | undefined; dispatchCommand: (command: import("lexical").LexicalCommand, payload: T) => boolean; registerCommand: (command: import("lexical").LexicalCommand, listener: import("lexical").CommandListener, priority: import("lexical").CommandListenerPriority) => () => void; registerUpdateListener: (listener: import("lexical").UpdateListener) => () => void; registerMutationListener: (klass: import("lexical").Klass, listener: import("lexical").MutationListener, options?: import("./types").RichTextEditorMutationListenerOptions) => () => void; registerNodeTransform: (klass: import("lexical").Klass, listener: import("lexical").Transform) => () => void; }, {}, {}, {}, { classNames: Partial>; autoSize: boolean | import("./types").RichTextEditorAutoSize; styles: Partial>; plugins: readonly import("./types").RichTextEditorPlugin[]; transformers: readonly import("@lexical/markdown").Transformer[]; history: boolean; historyDelay: number; historyMaxDepth: number | null; spellcheck: boolean; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import("vue").ComponentOptionsBase & Readonly<{ onUpdate?: ((context: import("./types").RichTextEditorChangeContext) => any) | undefined; onError?: ((error: Error) => any) | undefined; onFocus?: ((event: FocusEvent) => any) | undefined; onBlur?: ((event: FocusEvent) => any) | undefined; onChange?: ((value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any) | undefined; "onUpdate:modelValue"?: ((value: import("./types").RichTextEditorValue) => any) | undefined; onReady?: ((editor: import("lexical").LexicalEditor) => any) | undefined; }>, { readonly editor: import("lexical").LexicalEditor | null; readonly editorState: import("lexical").EditorState | null; readonly rootElement: HTMLDivElement | null; readonly canUndo: boolean; readonly canRedo: boolean; focus: (callback?: () => void, options?: import("./types").RichTextEditorFocusOptions) => void; blur: () => void | undefined; clear: () => void; undo: () => boolean; redo: () => boolean; getJSON: () => import("lexical").SerializedEditorState | undefined; setJSON: (value: import("./types").RichTextEditorValue | string, options?: import("lexical").EditorSetOptions) => void; getContent: () => import("./types").RichTextEditorContentSnapshot[]; setContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("lexical").EditorUpdateOptions) => void; insertContent: (content: readonly import("./types").RichTextEditorContentItem[], options?: import("./types").RichTextEditorInsertOptions) => void; getText: () => string; getHTML: () => string; setHTML: (html: string, options?: import("lexical").EditorUpdateOptions) => void; getMarkdown: (transformers?: readonly import("@lexical/markdown").Transformer[]) => string; setMarkdown: (markdown: string, transformers?: readonly import("@lexical/markdown").Transformer[], options?: import("lexical").EditorUpdateOptions) => void; insertText: (text: string, options?: import("./types").RichTextEditorInsertOptions) => void; insertComponent: (data: import("./types").RichTextEditorComponentNodeData, options?: import("./types").RichTextEditorInsertOptions) => void; updateComponent: (nodeKey: import("lexical").NodeKey, value: import("type-fest").JsonValue, options?: import("lexical").EditorUpdateOptions) => void; removeComponent: (nodeKey: import("lexical").NodeKey, options?: import("lexical").EditorUpdateOptions) => void; formatText: (format: import("lexical").TextFormatType) => boolean; read: (callback: () => T) => T | undefined; update: (callback: () => void, options?: import("lexical").EditorUpdateOptions) => void | undefined; dispatchCommand: (command: import("lexical").LexicalCommand, payload: T) => boolean; registerCommand: (command: import("lexical").LexicalCommand, listener: import("lexical").CommandListener, priority: import("lexical").CommandListenerPriority) => () => void; registerUpdateListener: (listener: import("lexical").UpdateListener) => () => void; registerMutationListener: (klass: import("lexical").Klass, listener: import("lexical").MutationListener, options?: import("./types").RichTextEditorMutationListenerOptions) => () => void; registerNodeTransform: (klass: import("lexical").Klass, listener: import("lexical").Transform) => () => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { update: (context: import("./types").RichTextEditorChangeContext) => any; error: (error: Error) => any; focus: (event: FocusEvent) => any; blur: (event: FocusEvent) => any; change: (value: import("./types").RichTextEditorValue, context: import("./types").RichTextEditorChangeContext) => any; "update:modelValue": (value: import("./types").RichTextEditorValue) => any; ready: (editor: import("lexical").LexicalEditor) => any; }, string, { classNames: Partial>; autoSize: boolean | import("./types").RichTextEditorAutoSize; styles: Partial>; plugins: readonly import("./types").RichTextEditorPlugin[]; transformers: readonly import("@lexical/markdown").Transformer[]; history: boolean; historyDelay: number; historyMaxDepth: number | null; spellcheck: boolean; }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => { $slots: import("./types").RichTextEditorSlots; }) & { install: (app: App, options?: SDOptions) => void; }; export { $createInlineComponentNode, $isInlineComponentNode, InlineComponentNode, } from './nodes/inline-component-node'; export { RICH_TEXT_EDITOR_BUILT_IN_NODE_NAMES, RICH_TEXT_EDITOR_JSON_FORM_NODE_NAMES, } from './built-in-components'; export type { SerializedInlineComponentNode } from './nodes/inline-component-node'; export type { RichTextEditorAutoSize, RichTextEditorBuiltInNodeData, RichTextEditorBuiltInNodeName, RichTextEditorChangeContext, RichTextEditorComponentNodeData, RichTextEditorComponentNodeSnapshot, RichTextEditorConfig, RichTextEditorContentItem, RichTextEditorContentSnapshot, RichTextEditorEmits, RichTextEditorFocusOptions, RichTextEditorInputNodeData, RichTextEditorJsonFormNodeData, RichTextEditorJsonFormNodeName, RichTextEditorInsertOptions, RichTextEditorMutationListenerOptions, RichTextEditorNodeRenderContext, RichTextEditorPlugin, RichTextEditorPluginContext, RichTextEditorProps, RichTextEditorRef, RichTextEditorSelectNodeData, RichTextEditorSemanticType, RichTextEditorSlots, RichTextEditorTagNodeData, RichTextEditorValue, } from './types'; export type RichTextEditorInstance = InstanceType; export default RichTextEditor;