import { LitElement, PropertyValues } from "lit"; import "../icon/icon.js"; import "../tooltip/tooltip.js"; declare const WarpTextarea_base: import("@open-wc/form-control").Constructor & typeof LitElement; /** * A multi-line text input with built-in form validation, auto-resizing, and styling support. * * [Warp component reference](https://warp-ds.github.io/docs/components/text-area/frameworks/elements) */ declare class WarpTextarea extends WarpTextarea_base { #private; /** @internal */ static shadowRootOptions: { delegatesFocus: boolean; clonable?: boolean; customElementRegistry?: CustomElementRegistry | null; mode: ShadowRootMode; serializable?: boolean; slotAssignment?: SlotAssignmentMode; }; /** * Keep in mind that using disabled in its current form is an anti-pattern. * * There will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons. * * Please consider more informative alternatives before choosing to use disabled on an element. * * @summary Makes the element not focusable and hides it from form submits */ disabled: boolean; /** * Mark the form field as invalid. * * Make sure to also set a `help-text` to help users fix the validation problem. */ invalid: boolean; /** * Either a `label` or an `aria-label` must be provided. */ label: string | undefined; /** * Use in combination with `invalid` to show as a validation error message, * or on its own to show a help text. * * @summary Description shown below the input field */ helpText: string | undefined; /** * Sets the maximum number of text rows before the content starts scrolling. */ maxRows: number | undefined; /** * Sets the minimum number of text rows the textarea should display */ minRows: number | undefined; /** * Sets the maximum number of text rows before the content starts scrolling. */ maxLength: number | undefined; /** * Sets the minimum number of characters for the textarea to be valid */ minLength: number | undefined; /** * The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form */ name: string | undefined; /** * Set a text that is shown in the textarea when it doesn't have a value. * * Placeholder text should not be used as a substitute for labeling the element with a visible label. * * @summary Shown in the textarea when it doesn't have a value */ placeholder: string | undefined; /** * @deprecated Use the native `readonly` attribute instead */ readOnly: boolean; /** * Whether the input can be selected but not changed by the user */ readonly: boolean; /** * Whether user input is required on the input before form submission */ required: boolean; /** * Supplementary information that should show in a tooltip behind an information icon after the label. * * You must provide a label to be able to show an info icon with a tooltip. */ tooltip?: string; /** * Lets you set the current value */ value: string | undefined; /** * Show an icon behind the label indicating the field is optional */ optional: boolean; private minHeight; private maxHeight; private _textarea; private _hasHelpTextSlot; constructor(); updated(changedProperties: PropertyValues): void; resetFormControl(): void; /** Returns the validation message if the textarea is invalid, otherwise an empty string */ get validationMessage(): string; /** Returns the validity state of the textarea */ get validity(): ValidityState; /** Checks whether the textarea passes constraint validation */ checkValidity(): boolean; /** Checks validity and shows the validation message if invalid */ reportValidity(): boolean; /** Sets a custom validation message. Pass an empty string to clear. */ setCustomValidity(message: string): void; static styles: import("lit").CSSResult[]; /** @internal */ get _textareaStyles(): string; /** @internal */ get _helptextstyles(): string; /** @internal */ get _helpId(): string | undefined; /** @internal */ get _id(): string; /** @internal */ get _error(): string | undefined; connectedCallback(): Promise; disconnectedCallback(): void; firstUpdated(changedProperties: PropertyValues): void; handler(e: InputEvent): void; helpTextSlotChange(): void; render(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "w-textarea": WarpTextarea; } } export { WarpTextarea };