import * as React from 'react'; import Group from './Group'; import Search from './Search'; import TextArea from './TextArea'; export interface AbstractInputProps { prefixCls?: string; className?: string; defaultValue?: any; value?: any; style?: React.CSSProperties; } export interface InputProps extends AbstractInputProps { placeholder?: string; type?: string; id?: number | string; name?: string; size?: 'large' | 'default' | 'small'; maxLength?: string; disabled?: boolean; readOnly?: boolean; addonBefore?: React.ReactNode; addonAfter?: React.ReactNode; onPressEnter?: React.FormEventHandler; onKeyDown?: React.FormEventHandler; onChange?: any; onClick?: React.FormEventHandler; onFocus?: React.FormEventHandler; onBlur?: React.FormEventHandler; autoComplete?: string; prefix?: React.ReactNode; suffix?: React.ReactNode; spellCheck?: boolean; autoFocus?: boolean; allowClear?: boolean; } export default class Input extends React.Component { static Group: typeof Group; static Search: typeof Search; static TextArea: typeof TextArea; static defaultProps: { prefixCls: string; type: string; disabled: boolean; }; static propTypes: { type: any; id: any; size: any; maxLength: any; disabled: any; value: any; defaultValue: any; className: any; addonBefore: any; addonAfter: any; prefixCls: any; autosize: any; onPressEnter: any; onKeyDown: any; onFocus: any; onBlur: any; prefix: any; suffix: any; }; input: HTMLInputElement; handleKeyDown: (e: React.KeyboardEvent) => void; focus(): void; blur(): void; emitEmpty: () => void; getInputClassName(): any; saveInput: (node: HTMLInputElement) => void; renderLabeledInput(children: React.ReactElement): JSX.Element; renderLabeledIcon(children: React.ReactElement): JSX.Element; renderInput(): JSX.Element; render(): JSX.Element; }