///
import * as React from 'react';
import { Nav, toString, toEditorState, getMentions } from '../rc-components/editor-mention';
export declare type MentionPlacement = 'top' | 'bottom';
export interface MentionProps {
prefixCls?: string;
suggestionStyle?: React.CSSProperties;
suggestions?: Array;
onSearchChange?: Function;
onChange?: Function;
notFoundContent?: any;
loading?: Boolean;
style?: React.CSSProperties;
defaultValue?: any;
value?: any;
className?: string;
multiLines?: Boolean;
prefix?: string;
placeholder?: string;
getSuggestionContainer?: (triggerNode: Element) => HTMLElement;
onFocus?: React.FocusEventHandler;
onBlur?: React.FocusEventHandler;
readOnly?: boolean;
disabled?: boolean;
placement?: MentionPlacement;
}
export interface MentionState {
suggestions?: Array;
focus?: Boolean;
}
export default class Mention extends React.Component {
static getMentions: typeof getMentions;
static defaultProps: {
prefixCls: string;
notFoundContent: string;
loading: boolean;
multiLines: boolean;
placement: string;
};
static Nav: typeof Nav;
static toString: typeof toString;
static toContentState: typeof toEditorState;
private mentionEle;
constructor(props: MentionProps);
componentWillReceiveProps(nextProps: MentionProps): void;
onSearchChange: (value: string, prefix: string) => any;
onChange: (editorState: any) => void;
defaultSearchChange(value: String): void;
onFocus: (ev: React.FocusEvent) => void;
onBlur: (ev: React.FocusEvent) => void;
focus: () => void;
mentionRef: (ele: any) => void;
render(): JSX.Element;
}