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';
import { MTIcon } from '@masterteam/icons';

declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
    private dir;
    inputText: HTMLInputElement;
    readonly field: _angular_core.InputSignal<boolean>;
    readonly hint: _angular_core.InputSignal<string | undefined>;
    readonly label: _angular_core.InputSignal<string | undefined>;
    readonly placeholder: _angular_core.InputSignal<string | undefined>;
    readonly class: _angular_core.InputSignal<string>;
    readonly type: _angular_core.InputSignal<string>;
    readonly readonly: _angular_core.InputSignal<boolean>;
    readonly pInputs: _angular_core.InputSignal<Partial<HTMLInputElement> | undefined>;
    readonly required: _angular_core.InputSignal<boolean>;
    readonly icon: _angular_core.InputSignal<MTIcon | undefined>;
    readonly iconPosition: _angular_core.InputSignal<"start" | "end">;
    styleClass: string;
    requiredValidator: typeof Validators.required;
    value: _angular_core.WritableSignal<string | null>;
    disabled: _angular_core.WritableSignal<boolean>;
    iconPos: _angular_core.Signal<"right" | "left">;
    alphaNum: RegExp;
    onTouched: () => void;
    onModelChange: (value: any) => void;
    ngControl: NgControl | null;
    isInvalid: typeof isInvalid;
    constructor();
    ngOnInit(): void;
    applyInputsToInputText(): void;
    onValueChange(value: any): 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<TextField, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextField, "mt-text-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "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; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}

export { TextField };
