1 | import * as React from 'react';
|
2 | import type { BaseSelectRef } from 'rc-select';
|
3 | import type { InputStatus } from '../_util/statusUtils';
|
4 | import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from '../select';
|
5 | declare const Option: import("rc-select/lib/Option").OptionFC;
|
6 | export interface DataSourceItemObject {
|
7 | value: string;
|
8 | text: string;
|
9 | }
|
10 | export type DataSourceItemType = DataSourceItemObject | React.ReactNode;
|
11 | export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
12 |
|
13 | dataSource?: DataSourceItemType[];
|
14 | status?: InputStatus;
|
15 | popupClassName?: string;
|
16 |
|
17 | dropdownClassName?: string;
|
18 |
|
19 | dropdownMatchSelectWidth?: boolean | number;
|
20 | popupMatchSelectWidth?: boolean | number;
|
21 | }
|
22 | declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: React.PropsWithChildren<AutoCompleteProps<ValueType, OptionType>> & React.RefAttributes<BaseSelectRef>) => React.ReactElement) & {
|
23 | displayName?: string;
|
24 | Option: typeof Option;
|
25 | _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
26 | };
|
27 | declare const PurePanel: (props: import("../_util/type").AnyObject) => React.JSX.Element;
|
28 | export default RefAutoComplete;
|