import React, { PureComponent } from 'react'; interface TextInputTheme { readonly textInput: string; readonly 'textInput--disabled': string; } export interface TextInputProps extends Omit, 'onChange'> { /** * An optional className to render on the textarea node. */ readonly className?: string; /** * An optional className for the surrounding container div. */ readonly containerClassName?: string; /** * Set the focus to this input element after mount */ readonly setFocus?: boolean; /** * The handler which will be called once the user changes the value of the input. */ readonly onChange?: (value: string) => void; /** * The handler which will be called once the user takes focus on the input. */ readonly onFocus?: () => void; /** * The handler which will be called once the user leaves focus of the input. */ readonly onBlur?: () => void; /** * This prob controls what function is triggered when the enter key is pressed */ readonly onEnterKey?: () => void; /** * An optional css theme to be injected. */ readonly theme?: TextInputTheme; } declare class TextInput extends PureComponent { private ref?; constructor(props: any); readonly componentDidMount: () => void; private readonly handleKeyPress; private readonly handleValueChange; render(): JSX.Element; } export default TextInput;