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