import * as React from 'react'; import { TextInput } from 'react-native'; import type { OTPFieldRootState } from '../root/OTPFieldRoot'; import type { ZestUIComponentProps } from '../../types'; /** * A single OTP slot. * Renders a ``. * * Its slot index comes from its position among the other inputs, via * `CompositeList` — so slots need no index prop. * * **Diverges from the web deliberately.** Upstream handles paste through a * `paste` event and selection ranges. React Native reports every edit as a whole * string through `onChangeText` and has no paste event, so both cases go through * the same path: whatever arrives is written from this slot onwards. That is also * what makes OS autofill work — iOS and Android deliver the entire SMS code into * the focused slot, which lands here as one long string. */ export declare function OTPFieldInput(componentProps: OTPFieldInput.Props): React.ReactElement>; export interface OTPFieldInputState extends OTPFieldRootState { /** * This slot's character. */ value: string; /** * This slot's index. */ index: number; /** * Whether this slot has a character. */ filled: boolean; } export interface OTPFieldInputProps extends Omit, 'value'> { } export declare namespace OTPFieldInput { type State = OTPFieldInputState; type Props = OTPFieldInputProps; } //# sourceMappingURL=OTPFieldInput.d.ts.map