import { ProviderFactory } from '@uidu/editor-common';
import { Node as PMNode } from 'prosemirror-model';
import { EditorView, NodeView } from 'prosemirror-view';
import React from 'react';
import { getPosHandler, ReactNodeView } from '../../../nodeviews';
import { PortalProviderAPI } from '../../../ui/PortalProvider';
import { MentionPluginOptions } from '../types';
export interface Props {
    providerFactory: ProviderFactory;
    options?: MentionPluginOptions;
}
export declare class MentionNodeView extends ReactNodeView<Props> {
    createDomRef(): HTMLElement;
    render(props: Props): React.JSX.Element;
}
export default function mentionNodeView(portalProviderAPI: PortalProviderAPI, providerFactory: ProviderFactory, options?: MentionPluginOptions): (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
