import React, { PureComponent } from 'react'; import { PickDefaultProps } from '../utils-typescript'; export interface TextAreaProps extends Omit, 'onChange'> { /** * An optional initial value. */ readonly value?: string; /** * An optional className to render on the textarea node. */ readonly className?: string; /** * An optional HTML5 placeholder. */ readonly placeholder?: string; /** * The handler which will be called once the user changes the value of the input. */ readonly onChange?: (value: any) => void; /** * This prop controls if the CheckBox is disabled or not. */ readonly disabled?: boolean; /** * An optional css theme to be injected. */ readonly theme?: TextAreaTheme; /** * Optional number to set the minRows of the TextArea if not expanded */ readonly minRows?: number; /** * Optional number to set the maxRows of the TextArea if expanded */ readonly maxRows?: number; /** * Optional number to set the expandedRows of the TextArea if expanded */ readonly expandedRows?: number; } interface TextAreaTheme { readonly textArea: string; readonly 'textArea--disabled': string; } export declare const defaultProps: PickDefaultProps; interface TextAreaState { readonly isFocused: boolean; } export declare class TextArea extends PureComponent { static defaultProps: Readonly>>; state: TextAreaState; render(): JSX.Element; private readonly handleValueChange; private readonly handleOnClick; readonly handleClickOutside: () => void; } declare const _default: React.ComponentClass; export default _default;