import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
import { QdFormTextAreaConfiguration } from '../model/forms.interface';
import { QdFormControl } from '../reactive-forms/controls/form-control';
import { QdFormsActionEmitterService } from '../shared/services/action-emitter.service';
import { QdEventBrokerService } from '../../core/services/event-broker.service';
import * as i0 from "@angular/core";
/**
 * The **QdTextarea** is an component that provides a form element for a textarea input.<br />
 * It is used to create a textarea input field with various configurable options. It can be used with Quadrel Reactive Forms or with model binding.
 *
 * ####**Usage with Reactive Forms**
 *
 * ```ts
 * form = new QdFormGroup({
 *   textarea: new QdFormControl()
 * });
 * ```
 * ```html
 * <form [formGroup]="form">
 *   <qd-textarea [formControlName]="textarea" [config]="config"></qd-textarea>
 * </form>
 * ```
 *
 * ####**Usage with Model Binding**
 * ```ts
 * value;
 * ```
 * ```html
 * <qd-textarea [(value)]="value" [config]="config"></qd-textarea>
 * ```
 */
export declare class QdTextareaComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
    private readonly actionEmitterService;
    private readonly changeDetectorRef;
    private controlContainer;
    private readonly eventBrokerService;
    /**
     * The form control name can be assigned here if you want to use Reactive Forms.
     */
    formControlName: string;
    /**
     * The current form item value, if you are working with Model Binding.
     *
     * @example
     * <qd-textarea [(value)]="value" [config]="config"></qd-textarea>
     */
    value: any;
    /**
     * The configuration for this form item
     *
     * @example
     * {
     *   label: { i18n: 'Qd-Forms Text Area', disabled: true },
     *   placeholder: { i18n: 'Placeholder' },
     *   hint: { i18n: 'Helpertext' },
     *   rows: 8
     * };
     */
    config: QdFormTextAreaConfiguration;
    /**
     * A static test ID for integration tests can be set. <br />
     * The value for the HTML attribute [data-test-id].
     */
    testId: string;
    /**
     * Emits event when the value has changed. Return value matches the current value.
     */
    readonly valueChange: EventEmitter<string>;
    /**
     * Emits event when the hint is clicked/tapped. `hintAction` must be set to `true` for this.
     */
    readonly clickHint: EventEmitter<any>;
    /**
     * Emits event when the readonly value is clicked/tapped. `clickReadonly ` must be set to `true` for this.
     */
    readonly clickReadonly: EventEmitter<any>;
    /**
     * Emits event when the viewonly value is clicked/tapped. `clickViewonly ` must be set to `true` for this.
     */
    readonly clickViewonly: EventEmitter<any>;
    readonly: boolean;
    viewonly: boolean;
    hintAction: boolean;
    readonlyAction: boolean;
    viewonlyAction: boolean;
    disabled: boolean;
    isFocus: boolean;
    control: AbstractControl | QdFormControl<any>;
    placeholder: string;
    label: string;
    hint: string;
    rows: number;
    valueForView: any;
    private _subs;
    private _onChange;
    private _onTouch;
    get hasError(): boolean;
    get required(): boolean;
    get numberOfCharacters(): number;
    get hasMaxLength(): boolean;
    get maxLength(): number;
    constructor(actionEmitterService: QdFormsActionEmitterService, changeDetectorRef: ChangeDetectorRef, controlContainer: ControlContainer, eventBrokerService: QdEventBrokerService);
    ngOnInit(): void;
    ngOnChanges(changes: any): void;
    ngOnDestroy(): void;
    registerOnChange(fn: (_: any) => void): void;
    registerOnTouched(fn: any): void;
    writeValue(value: any): void;
    setDisabledState(disabled: boolean): void;
    handleInput(event: any): void;
    handleFocus(): void;
    handleBlur(): void;
    private updateConfiguration;
    private initOpModeSubscription;
    static ɵfac: i0.ɵɵFactoryDeclaration<QdTextareaComponent, [null, null, { optional: true; host: true; skipSelf: true; }, { optional: true; }]>;
    static ɵcmp: i0.ɵɵComponentDeclaration<QdTextareaComponent, "qd-textarea", never, { "formControlName": { "alias": "formControlName"; "required": false; }; "value": { "alias": "value"; "required": false; }; "config": { "alias": "config"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, { "valueChange": "valueChange"; "clickHint": "clickHint"; "clickReadonly": "clickReadonly"; "clickViewonly": "clickViewonly"; }, never, never, false, never>;
}
//# sourceMappingURL=textarea.component.d.ts.map