import { type CSSResultGroup, type PropertyValues, type TemplateResult } from "lit"; import BaseTextInput from "../base-text-input/index.ts"; import { createValidator, type Validator } from "../utils/index.ts"; /** * @summary A multi-line input that enables user to type in text information. * * @tag tapsi-text-area */ export declare class TextArea extends BaseTextInput { /** @internal */ static readonly styles: CSSResultGroup; /** * The number of rows to display for the text input. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#rows * * @prop {number} rows * @attr {string} rows * @default 2 */ rows: number; /** * Minimum number of rows to display. * If specified will automatically adjust the height. * * @prop {number} minRows * @attr {string} min-rows * @default NaN */ minRows: number; /** * The number of cols to display for the text input. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#cols * * @prop {number} cols * @attr {string} cols * @default 20 */ cols: number; /** * Hints at the type of data that might be entered by the user while editing * the element or its contents. This allows a browser to display an * appropriate virtual keyboard. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode * * @prop {string} inputMode * @attr {string} inputMode * @default "" */ inputMode: string; private _inputStyleState; private _shadowRef; private _inputRef; private readonly _resizeSensor; constructor(); private _isAutoResizable; /** @internal */ connectedCallback(): void; /** @internal */ disconnectedCallback(): void; protected updated(changed: PropertyValues): void; /** @internal */ [createValidator](): Validator; private _syncHeights; private _handleInput; private _handleChange; private _renderShadowTextArea; protected renderInput(): TemplateResult; }