UNPKG

@lexical/react

Version:

This package provides Lexical components and hooks for React applications.

29 lines (23 loc) 828 B
/** * 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. * * @flow strict */ import type {LexicalNode, LexicalCommand} from 'lexical'; import {DecoratorNode} from 'lexical'; declare export class HorizontalRuleNode extends DecoratorNode<React.Node> { static getType(): string; static clone(node: HorizontalRuleNode): HorizontalRuleNode; createDOM(): HTMLElement; getTextContent(): '\n'; updateDOM(): false; decorate(): React.Node; } declare export function $createHorizontalRuleNode(): HorizontalRuleNode; declare export function $isHorizontalRuleNode( node: ?LexicalNode, ): node is HorizontalRuleNode; declare export var INSERT_HORIZONTAL_RULE_COMMAND: LexicalCommand<void>;