import { TextareaHTMLAttributes, ChangeEventHandler, FC, RefObject } from 'react';
declare type BaseElement = HTMLTextAreaElement;
declare type BaseProps = TextareaHTMLAttributes;
export declare type TextAreaChangeHandler = ChangeEventHandler;
export declare type TextAreaValueChangeHandler = (value: string) => void;
export interface TextAreaProps extends BaseProps {
/**
* Specifies the name of an input element.
*/
readonly name?: BaseProps['name'];
/**
* `class` to be passed to the component.
*/
readonly className?: string;
/**
* The value of the input element.
*/
readonly value?: BaseProps['value'];
/**
* Native change handler that can be used by formik etc.
*/
readonly onChange?: TextAreaChangeHandler;
/**
* Smooth typed value change handler.
*/
readonly onValueChange?: TextAreaValueChangeHandler;
/**
* Executes an action when the Enter key is pressed.
*/
readonly onPressEnter?: () => void;
/**
* Executes an action when the Esc key is pressed.
*/
readonly onPressEscape?: () => void;
/**
* Adds an error message underneath the text area.
*/
readonly error?: string | undefined;
/**
* Can be used to set React ref to the textarea element
*/
readonly textareaRef?: RefObject;
}
export declare const TextArea: FC;
export declare const TextAreaField: FC;
export {};