/** * 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 BaseSelection, type DOMConversionOutput, type EditorConfig, ElementNode, type LexicalNode, type LexicalParseJSON, type NodeKey, type SerializedElementNode, type SerializedPartial, type Spread } from 'lexical'; export type SerializedTableRowNode = Spread<{ height?: number; }, SerializedElementNode>; export interface TableRowNode { exportJSON(compact?: false): SerializedTableRowNode; exportJSON(compact: boolean): SerializedPartial; updateFromJSON(serializedNode: LexicalParseJSON): this; } /** @noInheritDoc */ export declare class TableRowNode extends ElementNode { /** @internal */ __height?: number; $config(): import("lexical").BaseStaticNodeConfig & import("lexical").StaticNodeConfigAccessor<{ readonly $transform: (node: ElementNode) => void; readonly extends: typeof LexicalNode; readonly generated: import("lexical").GeneratedJSONFactory; readonly json: import("lexical").NodeSerializationSchema; }> & { readonly tablerow?: { readonly extends: typeof ElementNode; readonly generated: import("lexical").GeneratedJSONFactory; readonly importDOM: { readonly tr: () => { conversion: typeof $convertTableRowElement; priority: 0; }; }; readonly json: import("lexical").NodeSerializationSchema; } | undefined; } & import("lexical").StaticNodeTypeAccessor<"tablerow"> & import("lexical").StaticNodeConfigAccessor<{ readonly extends: typeof ElementNode; readonly generated: import("lexical").GeneratedJSONFactory; readonly importDOM: { readonly tr: () => { conversion: typeof $convertTableRowElement; priority: 0; }; }; readonly json: import("lexical").NodeSerializationSchema; }>; constructor(height?: number | undefined, key?: NodeKey); createDOM(config: EditorConfig): HTMLElement; extractWithChild(child: LexicalNode, selection: BaseSelection | null, destination: 'clone' | 'html'): boolean; isShadowRoot(): boolean; setHeight(height?: number | undefined): this; getHeight(): number | undefined; updateDOM(prevNode: this): boolean; canBeEmpty(): false; canIndent(): false; } export declare function $convertTableRowElement(domNode: Node): DOMConversionOutput; export declare function $createTableRowNode(height?: number): TableRowNode; export declare function $isTableRowNode(node: LexicalNode | null | undefined): node is TableRowNode;