import React, { RefObject } from 'react'; export interface TextAreaProps { /** Should the input be focused */ autoFocus?: boolean; /** Display the input label */ label?: string; /** Input element name */ name: string; /** Input element placeholder text */ placeholder?: string; /** A helper text at the bottom of the input */ instruction?: string; /** Value of the input */ value?: string; /** Whether or not the input is disabled */ disabled?: boolean; /** Whether or not the input is required */ required?: boolean; /** The input change event handler */ onChange: (event: React.ChangeEvent) => void; /** An object with key as error message and value as predicate */ error?: Record; /** Max length of the input field */ maxLength?: number; /** The input element ref */ inputRef?: RefObject; /** Height of the textarea */ height?: string; /** Width of the textarea */ width: string; onBlur?: (event: React.FocusEvent) => void; } declare const TextArea: ({ autoFocus, disabled, error, instruction, label, maxLength, name, value, onBlur, onChange, placeholder, inputRef, required, height, width, ...other }: TextAreaProps & Omit, 'onChange' | 'onBlur' | 'onKeyPress' | 'onFocus'>) => JSX.Element; export default TextArea;