Files
lexical/packages/lexical-react/flow/LexicalHorizontalRuleNode.js.flow

29 lines
828 B
Plaintext

/**
* 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>;