import { DetailedHTMLProps, ReactElement, ReactNode, TextareaHTMLAttributes } from 'react';
type TextareaProps = DetailedHTMLProps, HTMLTextAreaElement>;
export interface ControlTextareaProps extends Omit {
onChange: (value: string, id: string) => void;
id?: string;
value?: string;
label?: string | ReactNode;
noAuto?: boolean;
optional?: boolean;
aside?: ReactNode;
validationError?: ReactNode;
themeControlTextarea?: string;
themeControlWrapper?: string;
themeLabel?: string;
}
declare function ControlTextarea({ id, onChange, value, label, optional, aside, validationError, noAuto, themeControlTextarea, themeControlWrapper, themeLabel, ...props }: ControlTextareaProps): ReactElement;
declare namespace ControlTextarea {
var propTypes: {
/** Unique id for this control. Required if you want a `label`. */
id: any;
/** The control's value. */
value: any;
/**
* Invoked when the control's value changes.
* Passed two arguments: the new value, and the `id` prop.
*/
onChange: any;
/** Label for the control. Label can be string or ReactNode. */
label: any;
/** If `true`, autocorrect and spelling suggestions will be disabled. */
noAuto: any;
/** If `true`, the text `(optional)` is appended to the label element. */
optional: any;
/** Additional content inserted alongside the label element. */
aside: any;
/** A validation error to display beneath the control. */
validationError: any;
/** Classes to apply to the textarea element. */
themeControlTextarea: any;
/** Classes to apply to the control wrapper. */
themeControlWrapper: any;
/** Classes to apply to the label element. */
themeLabel: any;
};
}
export default ControlTextarea;