import { MutableRefObject, Dispatch, SetStateAction, ReactNode } from 'react';
import { RichTextEditorMentionOption } from '../../types';
export declare const UNICODE_WHITESPACE_PATTERN = "[\0- \u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]";
export declare const UNICODE_WHITESPACE_REGEX: RegExp;
export type MentionState = {
    open: boolean;
    items: RichTextEditorMentionOption[];
    command: ((item: RichTextEditorMentionOption) => void) | null;
    rect: DOMRect | null;
};
export type MentionCallbacks = {
    getOptions: () => RichTextEditorMentionOption[];
    onQueryChange: (query: string) => void;
    setState: Dispatch<SetStateAction<MentionState>>;
    onKeyDown: (event: KeyboardEvent) => boolean;
    getRenderHoverContent: () => ((option: RichTextEditorMentionOption) => ReactNode) | undefined;
};
export declare const createMentionExtension: (callbacksRef: MutableRefObject<MentionCallbacks>) => import('@tiptap/core').Node<import('@tiptap/extension-mention').MentionOptions<any, import('@tiptap/extension-mention').MentionNodeAttrs>, any>;
