import * as _angular_core from '@angular/core';
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
import { isInvalid } from '@masterteam/components';

declare class TextareaField implements ControlValueAccessor, OnInit, OnChanges {
    textarea: HTMLTextAreaElement;
    readonly field: _angular_core.InputSignal<boolean>;
    readonly label: _angular_core.InputSignal<string | undefined>;
    readonly placeholder: _angular_core.InputSignal<string | undefined>;
    readonly class: _angular_core.InputSignal<string>;
    readonly readonly: _angular_core.InputSignal<boolean>;
    readonly noErrorStyle: _angular_core.InputSignal<boolean>;
    readonly pInputs: _angular_core.InputSignal<Partial<HTMLTextAreaElement> | undefined>;
    readonly rows: _angular_core.InputSignal<string>;
    readonly required: _angular_core.InputSignal<boolean>;
    styleClass: string;
    requiredValidator: typeof Validators.required;
    value: _angular_core.WritableSignal<string | null>;
    disabled: _angular_core.WritableSignal<boolean>;
    onTouched: () => void;
    onModelChange: (value: string | null) => void;
    ngControl: NgControl;
    isInvalid: typeof isInvalid;
    constructor();
    applyInputsToTextarea(): void;
    ngOnInit(): void;
    onValueChange(value: string | null): void;
    ngOnChanges(changes: SimpleChanges): void;
    writeValue(value: string): void;
    registerOnChange(fn: any): void;
    registerOnTouched(fn: any): void;
    setDisabledState(disabled: boolean): void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaField, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaField, "mt-textarea-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "noErrorStyle": { "alias": "noErrorStyle"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}

export { TextareaField };
