import { DecoratorNode, LexicalNode, NodeKey, SerializedTextNode } from 'lexical'; import React from 'react'; interface TagValue { prefix: string; text: string; type: string; value: any; } declare class TagNode extends DecoratorNode { prefix: string; text: string; type: string; value: any; constructor({ prefix, text, type, value }: TagValue, key?: NodeKey); createDOM(): HTMLElement; decorate(): React.ReactNode; getTextContent(): string; exportJSON(): SerializedTextNode; isInline(): boolean; updateDOM(): boolean; static getType(): string; static clone(node: TagNode): LexicalNode; static importJSON(node: SerializedTextNode): TagNode; } declare function $createTagNode(tagValue: TagValue): TagNode; declare function $isTagNode(node: LexicalNode): boolean; export default TagNode; export { $createTagNode, $isTagNode };