diff --git a/packages/lexical-devtools-core/flow/LexicalDevtoolsCore.js.flow b/packages/lexical-devtools-core/flow/LexicalDevtoolsCore.js.flow index 11f5fdbc79e..a95916ab86d 100644 --- a/packages/lexical-devtools-core/flow/LexicalDevtoolsCore.js.flow +++ b/packages/lexical-devtools-core/flow/LexicalDevtoolsCore.js.flow @@ -10,3 +10,28 @@ /** * LexicalDevtoolsCore */ + +import type { + LexicalEditor, + LexicalCommand +} from 'lexical'; + +export type LexicalCommandLog = $ReadOnlyArray | {payload: mixed}>; + +declare export function generateContent( +editor: LexicalEditor, +commandsLog: $ReadOnlyArray, +exportDOM: boolean, +obfuscateText?: boolean, +): string; + +declare export function registerLexicalCommandLogger( +editor: LexicalEditor, +setLoggedCommands: ( + v: (oldValue: LexicalCommandLog) => LexicalCommandLog, +) => void, +): () => void; + +declare export function useLexicalCommandsLog( +editor: LexicalEditor, +): LexicalCommandLog; \ No newline at end of file