UNPKG

lexical

Version:

Lexical is an extensible text editor framework that provides excellent reliability, accessible and performance.

27 lines (26 loc) 1.11 kB
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { KlassConstructor } from '../LexicalEditor'; import type { DOMConversionMap, NodeKey, SerializedLexicalNode } from '../LexicalNode'; import { LexicalNode } from '../LexicalNode'; export type SerializedLineBreakNode = SerializedLexicalNode; /** @noInheritDoc */ export declare class LineBreakNode extends LexicalNode { ['constructor']: KlassConstructor<typeof LineBreakNode>; static getType(): string; static clone(node: LineBreakNode): LineBreakNode; constructor(key?: NodeKey); getTextContent(): '\n'; createDOM(): HTMLElement; updateDOM(): false; isInline(): true; static importDOM(): DOMConversionMap | null; static importJSON(serializedLineBreakNode: SerializedLineBreakNode): LineBreakNode; } export declare function $createLineBreakNode(): LineBreakNode; export declare function $isLineBreakNode(node: LexicalNode | null | undefined): node is LineBreakNode;