import { TemplateResult } from "lit-element"; import { ITextfieldBehaviorProperties, TextfieldBehavior } from "../behavior/textfield/textfield-behavior"; /** * Properties of the textarea. */ export interface ITextareaProperties extends ITextfieldBehaviorProperties { } /** * Multiline text fields. * @cssprop --textarea-resize - Resize strategy * @cssprop --textarea-height - Height * @cssprop --textarea-min-height - Min height * @cssprop --textarea-max-height - Max height */ export declare class Textarea extends TextfieldBehavior implements ITextareaProperties { static styles: import("lit-element").CSSResult[]; /** * Hooks up the element. */ connectedCallback(): void; /** * Refresh the height at the first interaction. * @param props */ firstUpdated(props: Map): void; /** * Refreshes the height of the textarea each time the user interacts with it. * @param e */ onInput(e: Event): void; /** * Refreshes the height of the textarea. */ refreshHeight(): void; /** * Sets the height of the form element while respecting a potential user set CSS property. * @param height */ protected setHeight(height?: number): void; /** * Returns the form element. * Initially the textarea will have rows set to 1. * This is to initially have the textarea starting with having the height of 1 row. * This is a good solution to avoid the textarea having the wrong height if initially being hidden. */ protected renderFormElement(): TemplateResult; } declare global { interface HTMLElementTagNameMap { "wl-textarea": Textarea; } }