import type { LexicalEditor } from 'lexical'; import { type LexicalCommand } from 'lexical'; export type LexicalCommandLog = ReadonlyArray<{ index: number; } & LexicalCommand & { payload: unknown; }>; export declare function registerLexicalCommandLogger(editor: LexicalEditor, setLoggedCommands: (v: (oldValue: LexicalCommandLog) => LexicalCommandLog) => void): () => void; export declare function useLexicalCommandsLog(editor: LexicalEditor): () => LexicalCommandLog;