import * as React from 'react'; import { ChangeEvent, CSSProperties, HTMLProps, KeyboardEvent } from 'react'; export type InputType = 'text' | 'number' | 'password'; export type TS_BaseInputProps = Omit, 'onChange' | 'onBlur'> & { type: InputType; style?: CSSProperties; id?: Key; onChange?: (value: string, id: Key) => void; onAccept?: (value: string, event: KeyboardEvent) => void; onCancel?: () => void; onBlur?: (value: string, event: React.FocusEvent) => void; placeholder?: string; enable?: boolean; name?: string; value?: string; onKeyDown?: (e: KeyboardEvent) => void; focus?: boolean; spellCheck?: boolean; autoComplete?: boolean; innerRef?: React.RefObject; }; type InputState = { id: string; name?: string; initialValue?: string; value?: string; placeholder?: string; }; export declare abstract class TS_BaseInput, Input = HTMLInputElement | HTMLTextAreaElement> extends React.Component { protected ref?: HTMLInputElement | HTMLTextAreaElement; constructor(props: Props); static getDerivedStateFromProps(props: TS_BaseInputProps, state: InputState): { id: any; name: string | undefined; initialValue: string | (readonly string[] & string) | undefined; value: string; placeholder: string | undefined; } | { value: string | undefined; }; private static getInitialState; changeValue: (event: ChangeEvent) => void; } export {};