///
import { SelectProps, RefSelectProps } from '../generate';
export type SelectSource = 'option' | 'selection' | 'input';
export declare const INTERNAL_PROPS_MARK = "RC_SELECT_INTERNAL_PROPS_MARK";
export type Key = string | number;
export type ExpandKey = Key[] | Key;
export type DefaultExpandKey = ExpandKey | boolean;
export type RawValueType = string | number;
export interface LabelValueType {
key?: Key;
value?: RawValueType;
label?: React.ReactNode;
isCacheable?: Boolean;
}
export type DefaultValueType = RawValueType | RawValueType[] | LabelValueType | LabelValueType[] | undefined;
export interface DisplayLabelValueType extends LabelValueType {
disabled?: boolean;
}
export type SingleType = MixType extends (infer Single)[] ? Single : MixType;
export type OnClear = () => void;
export interface CustomTagProps {
label: React.ReactNode;
value: DefaultValueType;
disabled: boolean;
onClose: (event?: React.MouseEvent) => void;
closable: boolean;
}
export type GetLabeledValue = (value: RawValueType, config: {
options: FOT;
prevValueMap: Map;
labelInValue: boolean;
optionLabelProp: string;
groupSelectorRender?: (groupLabel: string, value: string | number) => React.ReactElement;
}) => LabelValueType;
export 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 type FilterFunc = (inputValue: string, option?: OptionType) => boolean;
export declare function RefSelectFunc(Component: React.ForwardRefRenderFunction>): React.ForwardRefExoticComponent> & React.RefAttributes>;
export type FlattenOptionsType = {
key?: Key;
data?: OptionsType[number];
/** Used for customize data */
[name: string]: any;
}[];