import type { MentionNodeAttrs } from "@tiptap/extension-mention"; import type { SuggestionKeyDownProps, SuggestionProps } from "@tiptap/suggestion"; /** * A mentionable variable that can be inserted into the {@link TextEditor} as a * tag. The `id` is stored in the editor output (as `data-id`), the `label` is * what the user sees in the suggestion list and in the rendered pill. */ export type TextEditorTag = { /** * Unique identifier for the variable, stored in the output as `data-id`. * * @example "greetingvariable" */ id: string; /** * Display text shown in the suggestion list and the rendered pill. * * @example "Greeting" */ label: string; }; export type MentionListRef = { onKeyDown: (props: SuggestionKeyDownProps) => boolean; }; /** * The dropdown shown while typing a mention trigger (e.g. `@`). It is rendered * imperatively by the Tiptap suggestion plugin via `ReactRenderer`, which is * why keyboard handling is exposed through a ref instead of DOM focus. */ export declare const MentionList: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;