/** * 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, ElementFormatType, LexicalCommand, LexicalNode, TextFormatType } from 'lexical'; export type PasteCommandType = ClipboardEvent | InputEvent | KeyboardEvent; export declare function createCommand(type?: string): LexicalCommand; export declare const SELECTION_CHANGE_COMMAND: LexicalCommand; export declare const SELECTION_INSERT_CLIPBOARD_NODES_COMMAND: LexicalCommand<{ nodes: Array; selection: BaseSelection; }>; export declare const CLICK_COMMAND: LexicalCommand; export declare const DELETE_CHARACTER_COMMAND: LexicalCommand; export declare const INSERT_LINE_BREAK_COMMAND: LexicalCommand; export declare const INSERT_PARAGRAPH_COMMAND: LexicalCommand; export declare const CONTROLLED_TEXT_INSERTION_COMMAND: LexicalCommand; export declare const PASTE_COMMAND: LexicalCommand; export declare const REMOVE_TEXT_COMMAND: LexicalCommand; export declare const DELETE_WORD_COMMAND: LexicalCommand; export declare const DELETE_LINE_COMMAND: LexicalCommand; export declare const FORMAT_TEXT_COMMAND: LexicalCommand; export declare const UNDO_COMMAND: LexicalCommand; export declare const REDO_COMMAND: LexicalCommand; export declare const KEY_DOWN_COMMAND: LexicalCommand; export declare const KEY_ARROW_RIGHT_COMMAND: LexicalCommand; export declare const MOVE_TO_END: LexicalCommand; export declare const KEY_ARROW_LEFT_COMMAND: LexicalCommand; export declare const MOVE_TO_START: LexicalCommand; export declare const KEY_ARROW_UP_COMMAND: LexicalCommand; export declare const KEY_ARROW_DOWN_COMMAND: LexicalCommand; export declare const KEY_ENTER_COMMAND: LexicalCommand; export declare const KEY_SPACE_COMMAND: LexicalCommand; export declare const KEY_BACKSPACE_COMMAND: LexicalCommand; export declare const KEY_ESCAPE_COMMAND: LexicalCommand; export declare const KEY_DELETE_COMMAND: LexicalCommand; export declare const KEY_TAB_COMMAND: LexicalCommand; export declare const INSERT_TAB_COMMAND: LexicalCommand; export declare const INDENT_CONTENT_COMMAND: LexicalCommand; export declare const OUTDENT_CONTENT_COMMAND: LexicalCommand; export declare const DROP_COMMAND: LexicalCommand; export declare const FORMAT_ELEMENT_COMMAND: LexicalCommand; export declare const DRAGSTART_COMMAND: LexicalCommand; export declare const DRAGOVER_COMMAND: LexicalCommand; export declare const DRAGEND_COMMAND: LexicalCommand; export declare const COPY_COMMAND: LexicalCommand; export declare const CUT_COMMAND: LexicalCommand; export declare const SELECT_ALL_COMMAND: LexicalCommand; export declare const CLEAR_EDITOR_COMMAND: LexicalCommand; export declare const CLEAR_HISTORY_COMMAND: LexicalCommand; export declare const CAN_REDO_COMMAND: LexicalCommand; export declare const CAN_UNDO_COMMAND: LexicalCommand; export declare const FOCUS_COMMAND: LexicalCommand; export declare const BLUR_COMMAND: LexicalCommand; export declare const KEY_MODIFIER_COMMAND: LexicalCommand;