import * as React from 'react'; import type { BaseInputControlProps, InputControlPin, InputControlSize, InputControlView } from "../types.js"; import "./TextArea.css"; export type TextAreaProps = BaseInputControlProps & { /** The control's html attributes */ controlProps?: React.TextareaHTMLAttributes; /** The number of visible text lines for the control. If not specified, the hight will be automatically calculated based on the content */ rows?: number; /** The number of minimum visible text lines for the control. Ignored if `rows` is specified */ minRows?: number; /** The number of maximum visible text lines for the control. Ignored if `rows` is specified */ maxRows?: number; /** An optional element displayed under the lower right corner of the control and sharing the place with the error container */ note?: React.ReactNode; }; export type TextAreaPin = InputControlPin; export type TextAreaSize = InputControlSize; export type TextAreaView = InputControlView; export declare const TextArea: React.ForwardRefExoticComponent | undefined; defaultValue?: string; disabled?: boolean; error?: string | boolean; errorMessage?: React.ReactNode; errorPlacement?: "outside" | "inside"; validationState?: "invalid"; hasClear?: boolean; id?: string; name?: string; onBlur?: React.FocusEventHandler | undefined; onChange?: React.ChangeEventHandler | undefined; onFocus?: React.FocusEventHandler | undefined; onKeyDown?: React.KeyboardEventHandler | undefined; onKeyPress?: React.KeyboardEventHandler | undefined; onKeyUp?: React.KeyboardEventHandler | undefined; onUpdate?: (value: string) => void; pin?: InputControlPin; placeholder?: string; readOnly?: boolean; size?: InputControlSize; tabIndex?: number; value?: string; view?: InputControlView; } & { /** The control's html attributes */ controlProps?: React.TextareaHTMLAttributes; /** The number of visible text lines for the control. If not specified, the hight will be automatically calculated based on the content */ rows?: number; /** The number of minimum visible text lines for the control. Ignored if `rows` is specified */ minRows?: number; /** The number of maximum visible text lines for the control. Ignored if `rows` is specified */ maxRows?: number; /** An optional element displayed under the lower right corner of the control and sharing the place with the error container */ note?: React.ReactNode; } & React.RefAttributes>;