import React from 'react'; import { FieldProps } from '../form/index'; export interface InputProps extends FieldProps { type?: 'text' | 'textarea' | 'password' | 'number'; name?: string; value?: any; defaultValue?: any; placeholder?: string; size?: 'normal' | 'large' | 'small'; round?: boolean; prefix?: React.ReactNode; suffix?: React.ReactNode; noPadding?: boolean | 'prefix' | 'suffix'; autoFocus?: boolean; focused?: boolean; defaultFocused?: boolean; readOnly?: boolean; disabled?: boolean; autoResize?: boolean | { minRows?: number; maxRows?: number; }; onChange?: (value: InputProps['value'], target: InputProps) => void; onFocus?: (ev: React.SyntheticEvent) => void; onBlur?: (ev: React.SyntheticEvent) => void; onMouseEnter?: (ev: React.SyntheticEvent) => void; onMouseLeave?: (ev: React.SyntheticEvent) => void; onPrefixClick?: (ev: React.SyntheticEvent) => void; onSuffixClick?: (ev: React.SyntheticEvent) => void; className?: string; style?: React.CSSProperties; } export interface InputState { value: any; focused: boolean; textareaStyle: React.CSSProperties; } export declare const Input: React.FC>; export default Input;