import { EditorState, LexicalEditor } from 'lexical'; import { MutableRefObject, ReactNode } from 'react'; export interface EditorViewerProps { editorState?: string; markdown?: boolean; children?: ReactNode; prepend?: ReactNode; onChange?: (editorState: EditorState, editor: LexicalEditor) => void; editorRef?: React.RefCallback | MutableRefObject; onReady?: () => void; enableHeadingsIdPlugin?: boolean; onCheckboxChange?: (content: string) => Promise; className?: string; }