import * as React from 'react'; import { Editor } from '@tiptap/react'; import { MergeField } from './merge-tag.js'; import 'react/jsx-runtime'; /** * Type `@` in an email editor to insert a merge field. * * Opens a list at the caret as soon as `@` is typed (at the start of a line or after a * space). Keep typing to filter; ↑ ↓ move, Enter or Tab inserts, Esc closes. The same field * is also on the toolbar's "Insert field" menu for people who would rather click. */ declare function useMergeTagSuggest(fields: MergeField[] | undefined): { attach: (editor: Editor | null) => void; update: (editor: Editor) => void; close: () => void; onKeyDown: (event: KeyboardEvent) => boolean; popup: React.ReactPortal | null; listId: string; activeId: string | undefined; }; export { useMergeTagSuggest };