UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

24 lines (22 loc) 759 B
/** * 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 { LexicalEditor } from './LexicalEditor'; import type { EditorState } from './LexicalEditorState'; import type { NodeKey } from './LexicalNode'; export declare function $garbageCollectDetachedDecorators( editor: LexicalEditor, pendingEditorState: EditorState, ): void; type IntentionallyMarkedAsDirtyElement = boolean; export declare function $garbageCollectDetachedNodes( prevEditorState: EditorState, editorState: EditorState, dirtyLeaves: Set<NodeKey>, dirtyElements: Map<NodeKey, IntentionallyMarkedAsDirtyElement>, ): void; export {};