import React, { ChangeEvent, KeyboardEvent, LegacyRef } from 'react'; import { TBaseInputProps, TBaseProps } from '../types'; /** * Контрол Input * @reactProps {boolean} length - максимальная длина значения * @reactProps {string} value - значение поля * @reactProps {string} placeholder - плэйсхолдер * @reactProps {boolean} disabled - флаг неактивности поля * @reactProps {boolean} disabled - флаг только для чтения * @reactProps {boolean} autoFocus - автофокус * @reactProps {function} onFocus - callback на фокус * @reactProps {function} onClick - callback на клик * @reactProps {function} onPaste - callback при вставке в инпут * @reactProps {function} onBlur - callback при блюре инпута * @reactProps {function} onChange - callback при изменение инпута * @reactProps {function} onKeyDown - callback при нажатии на кнопку клавиатуры * @reactProps {boolean} autoFocus - флаг автофокуса * @reactProps {string} className - css-класс * @reactProps {object} style - объект стилей * @reactProps {boolean} disabled - флаг неактивности поля * @reactProps {string} type - тип поля */ export declare type Props = TBaseProps & TBaseInputProps & { autoFocus: boolean; checked: boolean; inputRef?: LegacyRef; label?: string; length?: string; max?: number; min?: number; name: string; onClick(): void; onKeyDown(arg: KeyboardEvent): void; onPaste(): void; placeholder?: string; step?: string | number; tabIndex: number; type: string; }; export declare class Input extends React.Component { input: HTMLInputElement | null; constructor(props: Props); focus(): void; blur(): void; handleChange(e: ChangeEvent): void; setRef(node: HTMLInputElement): void; handleKeyDown: (evt: KeyboardEvent) => void; render(): JSX.Element; static defaultProps: Props; }