import * as React from 'react';
import Input, { InputProps as AntInputProps, GroupProps, SearchProps, PasswordProps } from 'antd/es/input';
import { TextAreaProps, TextAreaRef } from 'antd/es/input/TextArea';
import { LiteralUnion } from 'antd/es/_util/type';
export interface InputProps extends Omit<AntInputProps, 'defaultValue' | 'value' | 'inputMode' | 'is' | 'onChange'> {
    /**
     * @description 带标签的 input，设置前置标签
     */
    addonAfter?: React.ReactNode;
    /**
     * @description 带标签的 input，设置后置标签
     */
    addonBefore?: React.ReactNode;
    /**
     * @description 可以点击清除图标删除内容
     */
    allowClear?: boolean;
    /**
     * @description 是否有边框
     */
    bordered?: boolean;
    /**
     * @description 聚焦时自动全选
     */
    selectInFocus?: boolean;
    /**
     * @description 输入框默认内容
     */
    defaultValue?: string;
    /**
     * @description 是否禁用状态，默认为 false
     */
    disabled?: boolean;
    /**
     * @description 输入框的 id
     */
    id?: string;
    /**
     * @description 最大长度
     */
    maxLength?: number;
    /**
     * @description 带有前缀图标的 input
     */
    prefix?: React.ReactNode;
    /**
     * @description 控件大小。注：标准表单内的输入框大小限制为 large
     */
    size?: 'small' | 'middle' | 'large';
    /**
     * @description 带有后缀图标的 input
     */
    suffix?: React.ReactNode;
    /**
     * @description 声明 input 类型，同原生 input 标签的 type 属性 (请直接使用 Input.TextArea 代替 type="textarea")
     */
    type?: LiteralUnion<'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week', string>;
    /**
     * @description 输入框内容
     */
    value?: string;
    /**
     * @description 输入框内容变化时的回调
     */
    onChange?: (value: string | undefined) => void;
    /**
     * @description allowClear 为true时，点击close图标的回调
     */
    onClose?: () => void;
    /**
     * @description 按下回车的回调
     */
    onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
}
declare const InlineInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<Input>>;
export declare const Group: React.FC<GroupProps>;
export declare const Search: React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<Input>>;
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<TextAreaRef>>;
export declare const Password: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<Input>>;
export type { SearchProps, GroupProps };
export default InlineInput;
