import { USWDSBaseComponent } from '@uswds-wc/core'; /** * USA Textarea Web Component * * Simple, accessible USWDS textarea implementation as a custom element. * Uses official USWDS classes and styling. Textarea is a presentational * component that requires no JavaScript enhancement. * * @element usa-textarea * @fires input - Dispatched when the textarea value changes * @fires change - Dispatched when the textarea loses focus after value change * * @see README.mdx - Complete API documentation, usage examples, and implementation notes * @see CHANGELOG.mdx - Component version history and breaking changes * @see TESTING.mdx - Testing documentation and coverage reports * * @uswds-css-reference https://github.com/uswds/uswds/tree/develop/packages/usa-textarea/src/styles/_usa-textarea.scss * @uswds-docs https://designsystem.digital.gov/components/textarea/ * @uswds-guidance https://designsystem.digital.gov/components/textarea/#guidance * @uswds-accessibility https://designsystem.digital.gov/components/textarea/#accessibility */ export declare class USATextarea extends USWDSBaseComponent { static styles: import('lit').CSSResult; name: string; value: string; placeholder: string; label: string; hint: string; error: string; success: string; disabled: boolean; required: boolean; readonly: boolean; rows: number; cols: number | null; maxlength: number | null; minlength: number | null; autocomplete: string; id: string; /** * Whether to render in compact mode (no form-group wrapper) * Use this when the textarea is inside a fieldset or pattern where * the parent handles spacing and grouping */ compact: boolean; private _textareaId?; connectedCallback(): void; disconnectedCallback(): void; private handleInput; private handleChange; /** * Public API: Reset textarea to empty value * Allows patterns to clear the textarea without DOM manipulation */ reset(): void; private get textareaId(); private getTextareaClasses; private getFormGroupClasses; private getLabelClasses; private renderRequiredIndicator; private renderLabel; private renderHint; private renderError; private renderSuccess; render(): import('lit-html').TemplateResult<1>; } //# sourceMappingURL=usa-textarea.d.ts.map