import { TNode, SizeEnum } from '../common';
export interface TdInputProps {
    autocomplete?: boolean;
    autofocus?: boolean;
    clearable?: boolean;
    disabled?: boolean;
    maxcharacter?: number;
    maxlength?: number;
    name?: string;
    placeholder?: string;
    prefixIcon?: TNode;
    readonly?: boolean;
    size?: SizeEnum;
    status?: 'success' | 'warning' | 'error';
    suffixIcon?: string | TNode;
    type?: 'text' | 'number' | 'url' | 'tel' | 'password' | 'search' | 'submit' | 'hidden';
    value?: InputValue;
    defaultValue?: InputValue;
    onBlur?: (value: InputValue, context: {
        e: FocusEvent;
    }) => void;
    onChange?: (value: InputValue, context?: {
        e?: InputEvent | MouseEvent;
    }) => void;
    onClear?: (context: {
        e: MouseEvent;
    }) => void;
    onEnter?: (value: InputValue, context: {
        e: KeyboardEvent;
    }) => void;
    onFocus?: (value: InputValue, context: {
        e: FocusEvent;
    }) => void;
    onKeydown?: (value: InputValue, context: {
        e: KeyboardEvent;
    }) => void;
    onKeypress?: (value: InputValue, context: {
        e: KeyboardEvent;
    }) => void;
    onKeyup?: (value: InputValue, context: {
        e: KeyboardEvent;
    }) => void;
}
export declare type InputValue = string | number;
