UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

15 lines (14 loc) 685 B
import { IElementNode } from './i-element-node'; import { INode } from './i-node'; import { IParagraphNode } from './paragraph-node'; import { IRootNode } from './root-node'; import { ITextNode } from './text-node'; export declare const INodeHelper: { appendChild(parent: IElementNode, ...child: INode[]): void; createParagraph(attrs?: Record<string, unknown>): IParagraphNode; createRootNode(attrs?: Record<string, unknown>): IRootNode; createTextNode(text: string, attrs?: Record<string, unknown>): ITextNode; isParagraphNode(node: INode): node is IParagraphNode; isRootNode(node: INode): node is IRootNode; isTextNode(node: INode): node is ITextNode; };