import Toolbar from './EditorToolbar';
import MentionList from './MentionList';
import RichTextEditor from './RichTextEditor';
import { EditorEvents, ToolbarEvents } from './constants';
import useRichTextEditorEvents from './hooks/useRichTextEditorEvents';
import type { RichTextEditorProps } from './RichTextEditor';
import RichTextEditorInput from './RichTextEditorInput';
import type { RichTextEditorRef } from './RichTextEditorInput';

export type { RichTextEditorProps, RichTextEditorRef };

export default Object.assign(RichTextEditor, {
  Toolbar,
  MentionList,
  EditorEvents,
  ToolbarEvents,
  useRichTextEditorEvents,
  Base: RichTextEditorInput,
});
