/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { MutableRefObject, ReactNode, type JSX } from 'react'; import { EditorState, LexicalEditor } from 'lexical'; export interface EditorProps { children?: ReactNode; prepend?: ReactNode; placeholder?: ReactNode; onChange?: (editorState: EditorState, editor: LexicalEditor) => void; autoFocus?: boolean; showToolbar?: boolean; editorRef?: React.RefCallback | MutableRefObject; onReady?: () => void; enableHeadingsIdPlugin?: boolean; } export default function Editor({ children, prepend, placeholder, onChange, autoFocus, showToolbar, editorRef, onReady, enableHeadingsIdPlugin, }: EditorProps): JSX.Element;