import { HoistModel } from '@xh/hoist/core'; /** * Configuration for a {@link PinPadModel} - a numeric keypad for collecting a PIN. * * @see PinPadModel */ export interface PinPadConfig { /** The length of the PIN to get from the user, default 4. */ pinLength?: number; headerText?: string; subHeaderText?: string; } /** * Model for a PinPad - a numeric keypad prompt for collecting a PIN from the user. * * Tracks entered digits, validates PIN completion, and provides observable `value` and * `isComplete` getters. Supports configurable PIN length and custom header/subheader text. * * @see PinPad */ export declare class PinPadModel extends HoistModel { disabled: boolean; headerText: string; subHeaderText: string; errorText: string; private _enteredDigits; private _deleteWasLast; private _pinLength; constructor(config?: PinPadConfig); /** * The completed PIN entered by the user. Observe this property to track the state * of user progress. * * @returns null if the user has not finished entering a PIN, otherwise the PIN * the user entered. */ get completedPin(): string; /** * Clear everything entered by the user, allowing the user to start entering a new PIN. */ clear(): void; get activeIndex(): number; enterDigit(digit: any): void; deleteDigit(): void; get displayedDigits(): any[]; }