@lexical/react
Version:
This package provides Lexical components and hooks for React applications.
60 lines (59 loc) • 2.42 kB
TypeScript
/**
* 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 { $isHorizontalRuleNode, HorizontalRuleNode as BaseHorizontalRuleNode, INSERT_HORIZONTAL_RULE_COMMAND, type SerializedHorizontalRuleNode } from '@lexical/extension';
import { type DOMConversionOutput } from 'lexical';
import { type JSX } from 'react';
export { $isHorizontalRuleNode, INSERT_HORIZONTAL_RULE_COMMAND, type SerializedHorizontalRuleNode, };
/**
* @deprecated A pure Lexical implementation is available in `@lexical/extension` as HorizontalRuleExtension
*/
export declare class HorizontalRuleNode extends BaseHorizontalRuleNode {
$config(): import("lexical").BaseStaticNodeConfig & {
readonly horizontalrule?: {
readonly extends: typeof import("lexical").DecoratorNode;
readonly importDOM: {
readonly hr: () => {
conversion: () => DOMConversionOutput;
priority: 0;
};
};
} | undefined;
} & import("lexical").StaticNodeTypeAccessor<"horizontalrule"> & import("lexical").StaticNodeConfigAccessor<{
readonly extends: typeof import("lexical").DecoratorNode;
readonly importDOM: {
readonly hr: () => {
conversion: () => DOMConversionOutput;
priority: 0;
};
};
}> & {
readonly horizontalrule?: {
readonly extends: typeof BaseHorizontalRuleNode;
readonly importDOM: {
readonly hr: () => {
conversion: typeof $convertHorizontalRuleElement;
priority: 0;
};
};
} | undefined;
} & import("lexical").StaticNodeConfigAccessor<{
readonly extends: typeof BaseHorizontalRuleNode;
readonly importDOM: {
readonly hr: () => {
conversion: typeof $convertHorizontalRuleElement;
priority: 0;
};
};
}>;
decorate(): JSX.Element;
}
declare function $convertHorizontalRuleElement(): DOMConversionOutput;
/**
* @deprecated A pure Lexical implementation is available in `@lexical/extension` as HorizontalRuleExtension
*/
export declare function $createHorizontalRuleNode(): HorizontalRuleNode;