/**
 * 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, SerializedLexicalNode} from 'lexical';
import {DecoratorNode} from 'lexical';
export type SerializedHorizontalRuleNode = SerializedLexicalNode;
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>;
