///
import { SelectProps, RefSelectProps } from '../generate';
export declare type SelectSource = 'option' | 'selection' | 'input';
export declare const INTERNAL_PROPS_MARK = "RC_SELECT_INTERNAL_PROPS_MARK";
export declare type Key = string | number;
export declare type RawValueType = string | number;
export interface LabelValueType {
key?: Key;
value?: RawValueType;
label?: React.ReactNode;
}
export declare type DefaultValueType = RawValueType | RawValueType[] | LabelValueType | LabelValueType[];
export interface DisplayLabelValueType extends LabelValueType {
disabled?: boolean;
}
export declare type SingleType = MixType extends (infer Single)[] ? Single : MixType;
export declare type OnClear = () => void;
export declare type CustomTagProps = {
label: DefaultValueType;
value: DefaultValueType;
disabled: boolean;
onClose: (event?: React.MouseEvent) => void;
closable: boolean;
};
export declare type GetLabeledValue = (value: RawValueType, config: {
options: FOT;
prevValue: DefaultValueType;
labelInValue: boolean;
optionLabelProp: string;
}) => LabelValueType;
export declare type FilterOptions = (searchValue: string, options: OptionsType,
/** Component props, since Select & TreeSelect use different prop name, use any here */
config: {
optionFilterProp: string;
filterOption: boolean | FilterFunc;
}) => OptionsType;
export declare type FilterFunc = (inputValue: string, option?: OptionType) => boolean;
export declare function RefSelectFunc(Component: React.RefForwardingComponent>): React.ForwardRefExoticComponent> & React.RefAttributes>;
export declare type FlattenOptionsType = {
key: Key;
data: OptionsType[number];
/** Used for customize data */
[name: string]: any;
}[];