import * as i0 from '@angular/core'; import { AfterViewChecked, EventEmitter, TemplateRef, QueryList } from '@angular/core'; import * as i2 from 'primeng/api'; import { PrimeTemplate } from 'primeng/api'; import { BaseEditableHolder } from 'primeng/baseeditableholder'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { Nullable } from 'primeng/ts-helpers'; import { InputOtpPassThrough, InputOtpChangeEvent, InputOtpInputTemplateContext } from 'primeng/types/inputotp'; export { InputOtpChangeEvent, InputOtpInputTemplateContext, InputOtpTemplateEvents } from 'primeng/types/inputotp'; import * as _primeuix_styled from '@primeuix/styled'; import { BaseStyle } from 'primeng/base'; /** * * InputOtp is used to enter one time passwords. * * [Live Demo](https://www.primeng.org/inputotp/) * * @module inputotpstyle * */ declare enum InputOtpClasses { /** * Class name of the root element */ root = "p-inputotp", /** * Class name of the input element */ pcInputText = "p-inputotp-input" } declare class InputOtpStyle extends BaseStyle { name: string; style: _primeuix_styled.StyleType; classes: { root: string; pcInputText: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface InputOtpStyle extends BaseStyle { } declare const INPUT_OTP_VALUE_ACCESSOR: any; /** * Input Otp is used to enter one time passwords. * @group Components */ declare class InputOtp extends BaseEditableHolder implements AfterViewChecked { _componentStyle: InputOtpStyle; $pcInputOtp: InputOtp | undefined; bindDirectiveInstance: Bind; onAfterViewChecked(): void; /** * When present, it specifies that an input field is read-only. * @group Props */ readonly: boolean; /** * Index of the element in tabbing order. * @group Props */ tabindex: number | null; /** * Number of characters to initiate. * @group Props */ length: number; /** * Style class of the input element. * @group Props */ styleClass: string | undefined; /** * Mask pattern. * @group Props */ mask: boolean; /** * When present, it specifies that an input field is integer-only. * @group Props */ integerOnly: boolean; /** * When present, it specifies that the component should automatically get focus on load. * @group Props */ autofocus: boolean | undefined; /** * Specifies the input variant of the component. * @defaultValue undefined * @group Props */ variant: i0.InputSignal<"filled" | "outlined" | undefined>; /** * Specifies the size of the component. * @defaultValue undefined * @group Props */ size: i0.InputSignal<"large" | "small" | undefined>; /** * Callback to invoke on value change. * @group Emits */ onChange: EventEmitter; /** * Callback to invoke when the component receives focus. * @param {Event} event - Browser event. * @group Emits */ onFocus: EventEmitter; /** * Callback to invoke when the component loses focus. * @param {Event} event - Browser event. * @group Emits */ onBlur: EventEmitter; /** * Custom input template. * @param {InputOtpInputTemplateContext} context - Context of the template * @see {@link InputOtpInputTemplateContext} * @group Templates */ inputTemplate: TemplateRef | undefined; templates: Nullable>; _inputTemplate: TemplateRef | undefined; tokens: any; value: any; $variant: i0.Signal<"filled" | "outlined" | null>; get inputMode(): string; get inputType(): string; onAfterContentInit(): void; getToken(index: any): any; getTemplateEvents(index: any): { input: (event: any) => void; keydown: (event: any) => void; focus: (event: any) => void; blur: (event: any) => void; paste: (event: any) => void; }; onInput(event: any, index: any): void; updateModel(event: any): void; updateTokens(): void; getModelValue(i: number): any; getAutofocus(i: number): boolean; moveToPrev(event: any): void; moveToNext(event: any): void; findNextInput(element: any): any; findPrevInput(element: any): any; onInputFocus(event: any): void; onInputBlur(event: any): void; onKeyDown(event: any): void; onPaste(event: any): void; handleOnPaste(paste: any, event: any): void; getRange(n: number): number[]; trackByFn(index: number): number; /** * @override * * @see {@link BaseEditableHolder.writeControlValue} * Writes the value to the control. */ writeControlValue(value: any, setModelValue: (value: any) => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_readonly: unknown; static ngAcceptInputType_autofocus: unknown; } declare class InputOtpModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { INPUT_OTP_VALUE_ACCESSOR, InputOtp, InputOtpClasses, InputOtpModule, InputOtpStyle };