import * as React from 'react'; import { MergeField, MergeFieldExample } from './merge-tag.js'; import 'react/jsx-runtime'; import '@tiptap/react'; type RichTextEditorProps = Omit, "children" | "defaultValue" | "onChange"> & { value?: string; defaultValue?: string; onChange?: (html: string) => void; name?: string; placeholder?: string; disabled?: boolean; readOnly?: boolean; /** * Merge fields offered in an "Insert merge field" toolbar menu and an `@` list. They draw as * badge chips and are stored as `{{key}}` in `value` / `onChange`. Memoize the array. */ mergeFields?: MergeField[]; /** * Drop the box: no border, radius, fill or focus ring, and a plain toolbar. For editors that * fill their surface edge to edge, such as an email message. */ bare?: boolean; /** Extra controls at the right end of the toolbar, e.g. an Attach files button. */ toolbarEnd?: React.ReactNode; /** Rendered between the toolbar and the text, e.g. an email header block. */ contentTop?: React.ReactNode; /** Rendered after the text, e.g. an email footer block. */ contentBottom?: React.ReactNode; /** What a chip becomes for the person being previewed; shown in its details card. */ describeMergeField?: (key: string) => MergeFieldExample | null; }; declare const RichTextEditor: React.ForwardRefExoticComponent & React.RefAttributes>; export { RichTextEditor, type RichTextEditorProps };