import { DetailedHTMLProps, FC, InputHTMLAttributes, Ref } from 'react'; export interface PinFieldHiddenInputProps extends DetailedHTMLProps, HTMLInputElement> { ref?: Ref; } /** * PinFieldHiddenInput is the single, visually hidden `` that backs the PinField UI. * * It stores the full PIN value in one place while the visible pin “cells” render the * per-character representation. The input is hidden via `VisuallyHidden` but remains * focusable and accessible for keyboard input, screen readers, and browser autofill. * * The component is fully integrated with `usePinFieldContext()` and is responsible for: * - Synchronizing the active cell index based on caret/selection position (`syncActive`) * - Writing the current value into PinField state on input (`setValue`) * - Resetting the active cell on blur (`setActive(-1)`) * - Detecting “select all” state and reflecting it in PinField (`setSelectedAll`) * * Selection handling: * - Uses `onSelect` to determine whether the whole value is selected * (start === 0 && end === value.length) and updates `selectedAll` state. * * Notes: * - `onInput` schedules `syncActive()` in `requestAnimationFrame` to ensure the DOM * selection state is up to date before computing the next active index. * - External event handlers passed via props are merged with internal handlers. */ export declare const PinFieldHiddenInput: FC;