import * as i0 from '@angular/core'; import { EventEmitter } from '@angular/core'; import { NgControl } from '@angular/forms'; import { BaseModelHolder } from 'primeng/basemodelholder'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { Fluid } from 'primeng/fluid'; import { TextareaPassThrough } from 'primeng/types/textarea'; import { Subscription } from 'rxjs'; import { BaseStyle } from 'primeng/base'; /** * * Textarea is a multi-line text input element. * * [Live Demo](https://www.primeng.org/textarea/) * * @module textareastyle * */ declare enum TextareaClasses { /** * Class name of the root element */ root = "p-textarea" } declare class TextareaStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-filled': any; 'p-textarea-resizable ': any; 'p-variant-filled': boolean; 'p-textarea-fluid': any; 'p-inputfield-sm p-textarea-sm': boolean; 'p-textarea-lg p-inputfield-lg': boolean; 'p-invalid': any; })[]; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface TextareaStyle extends BaseStyle { } /** * Textarea adds styling and autoResize functionality to standard textarea element. * @group Components */ declare class Textarea extends BaseModelHolder { bindDirectiveInstance: Bind; $pcTextarea: Textarea | undefined; /** * Used to pass attributes to DOM elements inside the Textarea component. * @defaultValue undefined * @group Props */ pTextareaPT: i0.InputSignal; /** * Indicates whether the component should be rendered without styles. * @defaultValue undefined * @group Props */ pTextareaUnstyled: i0.InputSignal; /** * When present, textarea size changes as being typed. * @group Props */ autoResize: boolean | undefined; /** * Defines the size of the component. * @group Props */ pSize: 'large' | 'small'; /** * Specifies the input variant of the component. * @defaultValue undefined * @group Props */ variant: i0.InputSignal<"filled" | "outlined" | undefined>; /** * Spans 100% width of the container when enabled. * @defaultValue undefined * @group Props */ fluid: i0.InputSignalWithTransform; /** * When present, it specifies that the component should have invalid state style. * @defaultValue false * @group Props */ invalid: i0.InputSignalWithTransform; $variant: i0.Signal<"filled" | "outlined" | null>; /** * Callback to invoke on textarea resize. * @param {(Event | {})} event - Custom resize event. * @group Emits */ onResize: EventEmitter; ngControlSubscription: Subscription | undefined; _componentStyle: TextareaStyle; ngControl: NgControl | null; pcFluid: Fluid | null; get hasFluid(): boolean; constructor(); onInit(): void; onAfterViewInit(): void; onAfterViewChecked(): void; onInput(e: Event): void; resize(event?: Event): void; updateState(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_autoResize: unknown; } declare class TextareaModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { Textarea, TextareaClasses, TextareaModule, TextareaStyle };