import { EditorEvents, ToolbarEvents } from './constants'; import type { RichTextEditorProps } from './RichTextEditor'; import type { RichTextEditorRef } from './RichTextEditorInput'; export type { RichTextEditorProps, RichTextEditorRef }; declare const _default: import("react").ForwardRefExoticComponent & import("react").RefAttributes> & { Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => import("react").JSX.Element | null; MentionList: ({ name: eventPrefix, render, }: import("./MentionList").MentionListProps) => import("react").JSX.Element | null; EditorEvents: typeof EditorEvents; ToolbarEvents: typeof ToolbarEvents; useRichTextEditorEvents: (editorName: string) => { emitEvent: ({ type, data, }: { type: TEventName; data: TEventName extends keyof { "request-upsert-link": { text: string; url: string; }; "editor-change": { value: string; toolbarState: Record; }; link: { text: string; url: string; }; } ? { "request-upsert-link": { text: string; url: string; }; "editor-change": { value: string; toolbarState: Record; }; link: { text: string; url: string; }; }[TEventName] : unknown; }) => void; subscribeToEvents: (eventName: TEventName, onEvent: (data: TEventName extends keyof { "request-upsert-link": { text: string; url: string; }; "editor-change": { value: string; toolbarState: Record; }; link: { text: string; url: string; }; } ? { "request-upsert-link": { text: string; url: string; }; "editor-change": { value: string; toolbarState: Record; }; link: { text: string; url: string; }; }[TEventName] : void) => void) => () => void; }; Base: ({ autoFocus, name, placeholder, onChange, onCursorChange, style, testID, editorRef, value, onFocus, onBlur, }: import("./RichTextEditorInput").RichTextEditorInputProps) => import("react").ReactElement; }; export default _default;