import './Textarea.css'; import React from 'react'; import type { HTMLAttributes, TextareaHTMLAttributes, Ref } from 'react'; import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant'; import { type FieldLabelProps } from '../FieldLabel'; export declare const cnTextarea: import("@bem-react/classname").ClassNameFormatter; export type TextareaSizeVariant = FormElementSizeVariant; export declare const textareaExpandVariant: readonly ["autoSize", "verticalResize"]; export type TextareaExpandVariant = (typeof textareaExpandVariant)[number]; type TextareaElement = TextareaHTMLAttributes; export type TextareaProps = { /** Атрибут id для элемента input */ id?: string; /** Атрибут name для элемента input */ name?: string; /** Лейбл */ label?: string; /** Размер компонента */ size?: TextareaSizeVariant; /** Подсказка. Отображается, когда вариант не выбран */ placeholder?: string; /** Если {true} устанавливает автофокус */ autoFocus?: boolean; /** Если {true} переводит поле в состояние ошибки */ error?: boolean; /** Если {true} растягивает поле на всю ширину */ fullWidth?: boolean; /** Дополнительное описание к полю */ hint?: string | null | undefined; /** Если {true} делает элемент неактивным */ disabled?: boolean; /** Если {true} делает элемент обязательным к заполнению */ required?: boolean; /** Устанавливает максимальное число символов, которое может быть введено пользователем в текстовом поле. */ maxLength?: number; /** Количество колонок */ cols?: number; /** Количество строк */ rows?: number; /** Расширяемость поля */ expand?: TextareaExpandVariant; /** Выбранное значение */ value?: string; /** Значение по умолчанию (неконтролируемый компонент) */ defaultValue?: string; /** Обработчик события на изменение значения поля */ onChange?: TextareaElement['onChange']; /** Ссылка на элемент textarea */ textareaRef?: Ref; /** Свойства элемента textarea */ textareaProps?: TextareaElement & { 'data-testid'?: string; }; /** Ссылка на FieldLabel */ labelRef?: FieldLabelProps['ref']; /** Свойства FieldLabel */ labelProps?: FieldLabelProps; /** Ссылка на корневой DOM-элемент компонента */ ref?: Ref; 'data-testid'?: string; } & Omit, 'value' | 'defaultValue' | 'onChange'>; export declare const Textarea: React.ForwardRefExoticComponent & React.RefAttributes>; export {};