import { DOMOutputSpec, Node as ProseMirrorNode } from '@tiptap/pm/model'; import { SuggestionOptions } from '@tiptap/suggestion'; export interface MentionNodeAttrs { id: string | null; label?: string | null; } export type MentionOptions = MentionNodeAttrs> = { HTMLAttributes: Record; renderLabel?: (props: { options: MentionOptions; node: ProseMirrorNode; }) => string; renderText: (props: { options: MentionOptions; node: ProseMirrorNode; }) => string; renderHTML: (props: { options: MentionOptions; node: ProseMirrorNode; }) => DOMOutputSpec; deleteTriggerWithBackspace: boolean; suggestion: Omit, 'editor'>; }; export declare const MentionPluginKey: any; export declare const Mention: any; export default Mention;