import * as i0 from '@angular/core'; import { OnChanges, AfterViewInit, EventEmitter, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; type OtpStatus = 'idle' | 'success' | 'error'; interface OtpStatusMessages { success?: string; error?: string; } interface OtpInvalidEvent { reason: 'too-long' | 'char-rejected'; attemptedValue: string; acceptedValue: string; } interface OtpChangeEvent { value: string; isComplete: boolean; } declare class NgxOtpInputComponent implements ControlValueAccessor, OnChanges, AfterViewInit { private readonly valueState; private readonly caretIndexState; private readonly isDisabledState; private readonly hasInvalidOtpState; readonly statusMessageId: string; private readonly sanitizer; private readonly caretManager; private readonly keyHandlers; private readonly pasteDedupeWindowMs; private pasteHandledAt; private otpInput?; length: number; autoFocus: boolean; autoBlur: boolean; mask: boolean; charPattern: RegExp; inputMode: string; ariaLabel: string; status: OtpStatus; statusMessages: OtpStatusMessages; otpChange: EventEmitter; otpComplete: EventEmitter; otpInvalid: EventEmitter; private readonly cdr; private get value(); private set value(value); private get caretIndex(); private set caretIndex(value); get isDisabled(): boolean; get hasInvalidOtp(): boolean; get inputType(): string; get statusMessage(): string; private get isComplete(); get characters(): string[]; get displayCharacters(): string[]; get activeIndex(): number; get boxes(): number[]; get patternAttribute(): string | null; get resolvedLength(): number; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; writeValue(value: string | null): void; registerOnChange(fn: (value: string) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; handleContainerPointerDown(event: PointerEvent): void; handleBoxPointerDown(event: PointerEvent, index: number): void; handleBeforeInput(event: InputEvent): void; handleInput(event: Event): void; handleKeyDown(event: KeyboardEvent): void; handlePaste(event: ClipboardEvent): void; handleBlur(): void; reset(): void; private onChange; private onTouched; private sanitize; private setValueFromUser; private applyInvalidState; private applySanitizedResult; private applyPastedValue; private markPasteHandled; private wasPasteHandledRecently; private syncNativeInputValue; private setCaretIndex; private buildKeyHandlerContext; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { NgxOtpInputComponent }; export type { OtpChangeEvent, OtpInvalidEvent, OtpStatus, OtpStatusMessages };