import { DoCheck, ElementRef, OnChanges, OnDestroy } from '@angular/core'; import { FormGroupDirective, NgControl, NgForm } from '@angular/forms'; import { CanUpdateErrorState, ErrorStateMatcher } from '@koobiq/components/core'; import { KbqFormFieldControl } from '@koobiq/components/form-field'; import { Subject } from 'rxjs'; import { KbqNumberInput } from './input-number'; import * as i0 from "@angular/core"; export declare class KbqInput implements KbqFormFieldControl, OnChanges, OnDestroy, DoCheck, OnChanges, CanUpdateErrorState { protected elementRef: ElementRef; ngControl: NgControl; numberInput: KbqNumberInput; parentForm: NgForm; parentFormGroup: FormGroupDirective; defaultErrorStateMatcher: ErrorStateMatcher; private readonly useLegacyValidation; /** Whether the component is in an error state. */ errorState: boolean; /** An object used to control when error messages are shown. */ errorStateMatcher: ErrorStateMatcher; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ focused: boolean; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ readonly stateChanges: Subject; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ controlType: string; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ placeholder: string; protected uid: string; protected previousNativeValue: any; protected neverEmptyInputTypes: string[]; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ get disabled(): boolean; set disabled(value: boolean); private _disabled; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ get id(): string; set id(value: string); private _id; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ get required(): boolean; set required(value: boolean); private _required; /** Input type of the element. */ get type(): string; set type(value: string); private _type; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ get value(): string; set value(value: string); private inputValueAccessor; constructor(elementRef: ElementRef, ngControl: NgControl, numberInput: KbqNumberInput, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any); ngOnChanges(): void; ngOnDestroy(): void; ngDoCheck(): void; updateErrorState(): void; /** Focuses the input. */ focus(): void; onBlur(): void; /** Callback for the cases where the focused state of the input changes. */ focusChanged(isFocused: boolean): void; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ get empty(): boolean; /** * Implemented as part of KbqFormFieldControl. * @docs-private */ onContainerClick(): void; /** Does some manual dirty checking on the native input `value` property. */ protected dirtyCheckNativeValue(): void; /** Make sure the input is a supported type. */ protected validateType(): void; /** Checks whether the input type is one of the types that are never empty. */ protected isNeverEmpty(): boolean; /** Checks whether the input is invalid based on the native validation. */ protected isBadInput(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class KbqInputMono { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }