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