import React, { HTMLAttributes, InputHTMLAttributes, ReactNode, Ref } from 'react';
import { CommonProps } from './input';
import { WithRef } from '../utils/type';
export interface Props extends CommonProps {
/** 是否有清空功能 */
clearable?: boolean;
/** 前缀 */
prefix?: ReactNode;
/** 后缀 */
suffix?: ReactNode;
/**
* 获取 input 引用
*
* @deprecated use inputProps.ref instead
*/
inputRef?: Ref;
/** 需要传给 `input` 的属性 */
inputProps?: WithRef, HTMLInputElement>;
/** 根元素的 html 属性 */
rootHtmlProps?: WithRef, HTMLDivElement>;
}
export default function TextInput({ value: valueFromProps, defaultValue, onChange, placeholder, disabled, size, validateStatus, clearable, prefix, suffix, inputRef: inputRefFromProps, inputProps, rootHtmlProps, className, style }: Props): React.JSX.Element;