import React from 'react';
import './input.less';
export interface InputSelection {
    start: number;
    end: number;
}
export interface IInputBaseProps<T extends HTMLElement = HTMLInputElement> extends Omit<React.InputHTMLAttributes<T>, 'size' | 'prefix'> {
    className?: string;
    autoFocus?: boolean;
    defaultValue?: string;
    wrapperStyle?: React.CSSProperties;
    value?: string;
    onValueChange?: (value: string) => void;
    size?: 'default' | 'large' | 'small';
    disabled?: boolean;
    selection?: InputSelection;
    addonBefore?: React.ReactNode;
    addonAfter?: React.ReactNode;
    /**
     * 处理按下 Enter
     */
    onPressEnter?: React.KeyboardEventHandler<T>;
    /**
     * @default true
     * 保持 focus，即使点击到 addon 部分
     */
    persistFocus?: boolean;
    /**
     * @default false
     * 是否展示清空按钮
     */
    hasClear?: boolean;
    /**
     * 点击清空之后的回调
     */
    afterClear?: () => void;
    /**
     * @deprecated please use `addonAfter` instead
     */
    controls?: React.ReactNode[];
}
export declare const Input: React.ForwardRefExoticComponent<IInputBaseProps<HTMLInputElement> & {
    as?: any;
} & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
//# sourceMappingURL=Input.d.ts.map