import { FocusMonitor } from '@angular/cdk/a11y'; import { BooleanInput } from '@angular/cdk/coercion'; import * as i0 from '@angular/core'; import { ElementRef, OnDestroy } from '@angular/core'; import { FormBuilder, FormGroup, FormArray, ControlValueAccessor, NgControl, AbstractControl, ValidationErrors } from '@angular/forms'; import { MatFormFieldControl } from '@angular/material/form-field'; import { Subject } from 'rxjs'; declare class MxIpInput { _elRef: ElementRef; fb: FormBuilder; static nextId: number; ipBlocks: number; ipMaxLength: number; form: FormGroup; defaultValue: string[]; get ipBlocksArray(): FormArray; constructor(ipBlocks: number, ipMaxLength: number); onKeyup(event: KeyboardEvent, idxBlocks: number): void; onKeydown(event: KeyboardEvent, idxBlocks: number): void; private focusPrevInput; private focusNextInput; private cancelEvent; } declare class MxIpv4InputComponent extends MxIpInput implements ControlValueAccessor, MatFormFieldControl, OnDestroy { ngControl: NgControl | null; fm: FocusMonitor; stateChanges: Subject; focused: boolean; touched: boolean; controlType: string; describedBy: string; shouldLabelFloat: boolean; mergeString: string; id: string; class: string; get value(): string; set value(ip: string); get placeholder(): string; set placeholder(plh: string); private _placeholder; get required(): boolean; set required(req: BooleanInput); private _required; get disabled(): boolean; set disabled(value: BooleanInput); private _disabled; get errorState(): boolean; set errorState(value: boolean); private _errorState; readonly: boolean; get empty(): boolean; private onChange; private onTouched; constructor(); ngDoCheck(): void; setDescribedByIds(ids: string[]): void; onContainerClick(event: MouseEvent): void; ngOnDestroy(): void; writeValue(data: string): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; handleInput(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MxIpv6InputComponent extends MxIpInput implements ControlValueAccessor, MatFormFieldControl, OnDestroy { ngControl: NgControl | null; fm: FocusMonitor; stateChanges: Subject; focused: boolean; touched: boolean; controlType: string; describedBy: string; shouldLabelFloat: boolean; mergeString: string; id: string; class: string; get value(): string; set value(ip: string); get placeholder(): string; set placeholder(plh: string); private _placeholder; get required(): boolean; set required(req: BooleanInput); private _required; get disabled(): boolean; set disabled(value: BooleanInput); private _disabled; get errorState(): boolean; set errorState(value: boolean); private _errorState; readonly: boolean; get empty(): boolean; private onChange; private onTouched; constructor(); ngDoCheck(): void; setDescribedByIds(ids: string[]): void; onContainerClick(event: MouseEvent): void; ngOnDestroy(): void; writeValue(data: string): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; handleInput(): void; ipv6FormatConvertor: { CompressedToFull: (cmpdIp: string) => string; fullToCompressed: (fullIp: string) => void; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MxIpInputValidators { static ipv4(control: AbstractControl): ValidationErrors | null; static ipv6(control: AbstractControl): ValidationErrors | null; static simpleIpv6(control: AbstractControl): ValidationErrors | null; } export { MxIpInputValidators, MxIpv4InputComponent, MxIpv6InputComponent };