import { DOMConversionMap, DOMExportOutput, DecoratorNode, LexicalEditor, SerializedLexicalNode, Spread, type EditorConfig, type LexicalNode, type NodeKey } from "lexical"; import React, { ElementType } from "react"; import { BeautifulMentionComponentProps, BeautifulMentionsItemData } from "./BeautifulMentionsPluginProps"; export type SerializedBeautifulMentionNode = Spread<{ trigger: string; value: string; data?: Record; }, SerializedLexicalNode>; /** * This node is used to represent a mention used in the BeautifulMentionPlugin. */ export declare class BeautifulMentionNode extends DecoratorNode { __trigger: string; __value: string; __data?: Record; static getType(): string; static clone(node: BeautifulMentionNode): BeautifulMentionNode; constructor(trigger: string, value: string, data?: Record, key?: NodeKey); createDOM(): HTMLElement; updateDOM(): boolean; exportDOM(): DOMExportOutput; static importDOM(): DOMConversionMap | null; static importJSON(serializedNode: SerializedBeautifulMentionNode): BeautifulMentionNode; exportJSON(): SerializedBeautifulMentionNode; getTextContent(): string; getTrigger(): string; getValue(): string; setValue(value: string): void; getData(): Record | undefined; setData(data?: Record): void; component(): ElementType | null; decorate(_editor: LexicalEditor, config: EditorConfig): React.JSX.Element; getCssClassesFromTheme(config: EditorConfig): { className: string | undefined; classNameFocused: string | undefined; classNames: import("./theme").BeautifulMentionsCssClassNames | undefined; }; } export declare function $createBeautifulMentionNode(trigger: string, value: string, data?: Record): BeautifulMentionNode; export declare function $isBeautifulMentionNode(node: LexicalNode | null | undefined): node is BeautifulMentionNode;