import * as React from 'react'; import type { OTPFieldRoot, OTPFieldRootState } from "./OTPFieldRoot.js"; import type { OTPFieldInputState } from "../input/OTPFieldInput.js"; export interface OTPFieldRootContext { activeIndex: number; autoComplete: string | undefined; disabled: boolean; form: string | undefined; focusInput: (index: number) => void; queueFocusInput: (index: number, value: string) => void; getInputId: (index: number) => string | undefined; handleInputBlur: (event: React.FocusEvent) => void; handleInputFocus: (index: number, event: React.FocusEvent) => void; inputMode: React.HTMLAttributes['inputMode']; inputAriaLabelledBy: string | undefined; invalid: boolean | undefined; length: number; mask: boolean; pattern: string | undefined; reportValueInvalid: (value: string, details: OTPFieldRoot.InvalidEventDetails) => void; readOnly: boolean; required: boolean; normalizeValue: ((value: string) => string) | undefined; setValue: (value: string, details: OTPFieldRoot.ChangeEventDetails) => string | null; state: OTPFieldRootState; validationType: OTPFieldRoot.ValidationType; value: string; } export declare const OTPFieldRootContext: React.Context; export declare function useOTPFieldRootContext(): OTPFieldRootContext; export declare function getOTPFieldInputState(state: OTPFieldRootState, value: string, index: number): OTPFieldInputState;