1 | import type { MentionsProps as RcMentionsProps, MentionsRef as RcMentionsRef } from 'rc-mentions/lib/Mentions';
|
2 | import * as React from 'react';
|
3 | import type { InputStatus } from '../_util/statusUtils';
|
4 | export declare const Option: React.FC<import("rc-mentions/lib/Option").OptionProps>;
|
5 | export type MentionPlacement = 'top' | 'bottom';
|
6 | export interface OptionProps {
|
7 | value: string;
|
8 | children: React.ReactNode;
|
9 | [key: string]: any;
|
10 | }
|
11 | export interface MentionProps extends RcMentionsProps {
|
12 | loading?: boolean;
|
13 | status?: InputStatus;
|
14 | popupClassName?: string;
|
15 | }
|
16 | export interface MentionsRef extends RcMentionsRef {
|
17 | }
|
18 | export interface MentionState {
|
19 | focused: boolean;
|
20 | }
|
21 | interface MentionsConfig {
|
22 | prefix?: string | string[];
|
23 | split?: string;
|
24 | }
|
25 | interface MentionsEntity {
|
26 | prefix: string;
|
27 | value: string;
|
28 | }
|
29 | interface CompoundedComponent extends React.ForwardRefExoticComponent<MentionProps & React.RefAttributes<MentionsRef>> {
|
30 | Option: typeof Option;
|
31 | _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
32 | getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
|
33 | }
|
34 | declare const Mentions: CompoundedComponent;
|
35 | declare const PurePanel: any;
|
36 | export default Mentions;
|