import type { LexicalCommand, LexicalEditor } from 'lexical'; export type LexicalCommandLog = ReadonlyArray<{ index: number; } & LexicalCommand & { payload: unknown; }>; export declare function registerLexicalCommandLogger(editor: LexicalEditor, loggedCommands: { value: LexicalCommandLog; }, setLoggedCommands: (newState: LexicalCommandLog) => void): () => void; export declare function useLexicalCommandsLog(editor: LexicalEditor): Readonly; }[], readonly { readonly index: number; readonly type?: string | undefined; readonly payload: Readonly; }[]>>;