import { AfterViewInit, ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core'; import { Platform } from '@angular/cdk/platform'; import { UntypedFormControl } from '@angular/forms'; import * as i0 from "@angular/core"; /** * Highly inspired by CdkTextareaAutosize * this directive allows to automatically adjust a paTextarea height according to its content. */ export declare class PaTextareaAutoHeightDirective implements AfterViewInit, OnDestroy { private _elementRef; private _platform; private _ngZone; private renderer; set enabled(value: any); get enabled(): boolean; set maxHeight(value: number | null | undefined); formControl?: UntypedFormControl; /** Class that should be applied to the textarea while it's being measured. */ readonly _measuringClass: string; readonly _textarea: HTMLTextAreaElement; readonly _heightSafetynet = 4; private _previousHeight; private _previousValue?; private _maxHeight; private _enabled; private _autoSizingChanged$; constructor(_elementRef: ElementRef, _platform: Platform, _ngZone: NgZone, renderer: Renderer2); ngAfterViewInit(): void; ngOnDestroy(): void; /** * Resize the textarea to fit its content. */ resizeToFitContent(): void; private _measureAutoHeight; private _toggleAutoHeight; private _trackChanges; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }