import { EventEmitter } from '../../stencil-public-runtime'; import { FormControlState } from '../../utils/form-control'; export declare class SekiInputOtp { el: HTMLElement; internals: ElementInternals; private inputRef?; private formControl?; /** * Total number of characters allowed */ maxlength: number; /** * Input pattern: 'digits' for numbers only, 'alphanumeric' for letters and numbers */ pattern: 'digits' | 'alphanumeric'; /** * Current OTP value */ value: string; /** * Whether the input is disabled */ disabled: boolean; /** * Whether to mask the input (show bullets) */ masked: boolean; /** * Whether the input is in an invalid/error state */ invalid: boolean; /** * Form field name */ name?: string; /** * Whether the input is required */ required: boolean; /** * Autocomplete hint for mobile keyboards */ autocomplete: string; /** * Custom aria-label for the input */ ariaLabel?: string; /** * ID of element describing this input */ ariaDescribedby?: string; /** * Text that describes this control. Set by `seki-field` from its description * (and error) slot, because an `aria-describedby` id cannot cross the shadow * boundary to the inner element (#358). */ ariaDescription?: string; /** Marks the control invalid for assistive technology. Set by `seki-field` (#358). */ ariaInvalid?: string; /** * Current active slot index (internal) */ _activeIndex: number; /** * Whether the input has focus (internal) */ _hasFocus: boolean; /** * Emitted on each character change */ sekiInput: EventEmitter<{ value: string; }>; /** * Emitted when value changes */ sekiChange: EventEmitter<{ value: string; }>; /** * Emitted when all slots are filled */ sekiComplete: EventEmitter<{ value: string; }>; /** * Internal event to notify slots of state changes */ sekiOtpStateChange: EventEmitter; handleValueChange(newValue: string): void; handleFormStateChange(): void; handleStateChange(): void; componentWillLoad(): void; componentDidRender(): void; formResetCallback(): void; formDisabledCallback(disabled: boolean): void; formStateRestoreCallback(state: FormControlState): void; focusAtIndex(index: number): void; private getPatternRegex; private isValidChar; private filterValue; private handleInput; private handleKeyDown; private handlePaste; private handleFocus; private handleBlur; private handleContainerClick; render(): any; }