/** * 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 { EditorState } from './LexicalEditorState.js'; import type { GeneratedJSON } from './LexicalGeneratedJSON.js'; import type { RootNode } from './nodes/LexicalRootNode.js'; import { DecoratorNode, ElementNode, type LineBreakNode, type UpdateTag } from './index.js'; import { CONTROL_OR_OTHER_KEY } from './LexicalConstants.js'; import { type DOMSlot, ElementDOMSlot } from './LexicalDOMSlot.js'; import { type AnyLexicalCommand, type CommandPayloadArgs, type CommandPayloadType, type DOMSlotForNode, type EditorDOMRenderConfig, type EditorThemeClasses, type Klass, LexicalEditor, type MutatedNodes, type MutationListeners, type NodeMutation, type RegisteredNode, type RegisteredNodes } from './LexicalEditor.js'; import { LexicalNode, type LexicalParseJSON, type LexicalPrivateDOM, type NodeKey, type NodeMap, type SerializedLexicalNode, type StaticNodeConfigValue } from './LexicalNode.js'; import { type AnyStateConfig } from './LexicalNodeState.js'; import { type AnySerializationSchema, type ComposedSchemaFields, type SchemaFieldBase, type SchemaGetterField, type SchemaSetterField } from './LexicalSchema.js'; import { type BaseSelection, type PointType, type RangeSelection } from './LexicalSelection.js'; import { type ParagraphNode } from './nodes/LexicalParagraphNode.js'; import { type TextFormatType, TextNode } from './nodes/LexicalTextNode.js'; export declare const emptyFunction: () => void; export declare function setPendingNodeToClone(pendingNode: null | LexicalNode): void; export declare function getPendingNodeToClone(): null | LexicalNode; /** Resets the internal key counter, primarily for deterministic test output. */ export declare function resetRandomKey(): void; export declare function generateRandomKey(): string; /** * @internal */ export declare function getRegisteredNodeOrThrow(editor: LexicalEditor, nodeType: string): RegisteredNode; /** * @internal */ export declare function getRegisteredNode(editor: LexicalEditor, nodeType: string): undefined | RegisteredNode; export declare const isArray: (arg: any) => arg is any[]; /** @internal */ export declare const scheduleMicroTask: (fn: () => void) => void; /** Returns true if the active element (resolved from the anchor's root) is a decorator's own input (e.g. an input, textarea, or foreign contentEditable) rather than Lexical-managed content. */ export declare function $isSelectionCapturedInDecoratorInput(anchorDOM: Node, preResolvedActiveElement?: Element | null): boolean; /** * Returns true if an event comes from an input embedded in a node's DOM, read * from its composed target: an ``, a `