import { AfterViewInit, ElementRef, QueryList } from '@angular/core'; import { ControlValueAccessor, FormArray } from '@angular/forms'; import { OverrideStyleConfig } from '@pv-frontend/pv-shared-components/common/types'; import * as i0 from "@angular/core"; export interface OTPInputStyleConfig { container?: OverrideStyleConfig; label?: OverrideStyleConfig; inputContainer?: OverrideStyleConfig; input?: OverrideStyleConfig; error?: OverrideStyleConfig; } export declare class OTPInput implements ControlValueAccessor, AfterViewInit { #private; onChange?: (value: string) => void; onTouched?: () => void; inputs: FormArray; inputEls: QueryList>; set size(_size: number); label: string; /** * Explicitly send this flag when backend sends some erroneous response for OTP */ isInvalid: boolean; /** * Error message to be shown below the otp input */ errorMessage: string; style?: OTPInputStyleConfig; styleClass?: string; autoFocus?: boolean; ngAfterViewInit(): void; handleInput(): void; handleKeyDown(e: KeyboardEvent, idx: number): void; handleFocus(e: FocusEvent): void; handlePaste(event: ClipboardEvent, idx: number): void; private getFormArray; writeValue(): void; registerOnChange(fn: (value: string) => void): void; registerOnTouched(fn: () => void): void; setDisabledState?(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=otp-input.component.d.ts.map