import { EditorState, LexicalEditor } from 'lexical'; import { RichTextField } from 'payload/types'; import type { EditorConfig } from '../../types'; import { Comments, CommentStore } from './commenting'; export type Props = Omit & { editorConfig: EditorConfig; path?: string; }; export type OnChangeProps = { onChange: (editorState: EditorState, editor: LexicalEditor, tags: Set, commentStore: CommentStore) => void; initialJSON: any; editorConfig: EditorConfig; initialComments: Comments; value: any; setValue: (value: any) => void; };