import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
import { FormBuilder, FormControl } from '@angular/forms';
import { AbstractVariable } from '@iotize/tap/data';
import { CurrentDeviceService, PendingCallManager } from '@iotize/ionic';
import { Observable, Subject } from 'rxjs';
export interface MonitoringEditTextEvent {
    type: 'CLOSE' | 'WRITE_SUCCESS' | 'WRITE_ERROR';
    payload?: any;
}
export declare class MonitoringEditTextComponent implements OnInit, AfterViewInit {
    protected formBuilder: FormBuilder;
    loading: boolean;
    validationMessages: {
        required: string;
        minlength: string;
        maxlength: string;
        pattern: string;
    };
    private subscription?;
    _inputStream?: Observable<any>;
    _variable?: AbstractVariable<any>;
    inputref: any;
    pendingCallManager: PendingCallManager;
    set inputStream(stream: Observable<any> | undefined);
    set variable(variable: AbstractVariable<any>);
    label?: string;
    input: string;
    type: string;
    actions?: Subject<any>;
    clearInput: boolean;
    clearOnEdit: boolean;
    color: string;
    disabled: boolean;
    inputmode: string;
    max?: number;
    min?: number;
    maxLength?: number;
    minLength?: number;
    name?: undefined;
    pattern?: undefined;
    placeholder?: undefined;
    readonly: boolean;
    required: boolean;
    set value(v: any);
    onEvent: EventEmitter<MonitoringEditTextEvent>;
    myControl: FormControl;
    myGroup: import("@angular/forms").FormGroup;
    errorToString(item: {
        key: string;
        value: any;
    }): any;
    submit(): void;
    onKeydown(event: KeyboardEvent): void;
    ngAfterViewInit(): void;
    close(): void;
    private addFormError;
    refresh(): void;
    private startAction;
    setLoading(value: boolean): void;
    private setStream;
    constructor(formBuilder: FormBuilder, tapService: CurrentDeviceService);
    ngOnInit(): void;
}
