import React, { HTMLAttributes, ReactNode } from 'react';
import { CommonProps as InputCommonProps } from '../Input/input';
import { Value, OptionGroupStyle, FetchFn } from './common';
import { WithRef } from '../utils/type';
export interface Props extends InputCommonProps {
/** 是否支持搜索 */
searchable?: boolean;
/** 是否有清空功能 */
clearable?: boolean;
/** 自定义的数据获取逻辑 */
fetch?: FetchFn;
/** `OptionGroup` 的渲染样式 */
groupStyle?: OptionGroupStyle;
/** 内容(`Option` / `OptionGroup`) */
children?: ReactNode;
/** 根元素的 HTML 属性 */
rootHtmlProps?: WithRef, HTMLDivElement>;
}
export default function Select({ value: valueFromProps, defaultValue, onChange, placeholder, searchable, clearable, fetch, groupStyle, children, disabled, size, validateStatus, className: classNameFromProps, rootHtmlProps, ...otherProps }: Props): React.JSX.Element;