import { UseFieldInternalProps, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, SectionOrdering, UseFieldForwardedProps, CharacterEditingQuery } from "./useField.types.js"; import { FieldSelectedSections, PickersTimezone, InferFieldSection, PickerManager } from "../../../models/index.js"; import { PickerValidValue } from "../../models/index.js"; export declare const useFieldState: >(parameters: UseFieldStateParameters) => UseFieldStateReturnValue; interface UseFieldStateParameters> { manager: PickerManager; internalPropsWithDefaults: UseFieldInternalProps & TValidationProps; forwardedProps: TForwardedProps; } export interface UpdateSectionValueParameters { /** * The section on which we want to apply the new value. */ section: InferFieldSection; /** * Value to apply to the active section. */ newSectionValue: string; /** * If `true`, the focus will move to the next section. */ shouldGoToNextSection: boolean; } export interface UseFieldStateReturnValue { activeSectionIndex: number | null; areAllSectionsEmpty: boolean; error: boolean; localizedDigits: string[]; parsedSelectedSections: FieldParsedSelectedSections; sectionOrder: SectionOrdering; sectionsValueBoundaries: FieldSectionsValueBoundaries; state: UseFieldState; timezone: PickersTimezone; value: TValue; clearValue: () => void; clearActiveSection: () => void; setCharacterQuery: (characterQuery: CharacterEditingQuery | null) => void; setSelectedSections: (sections: FieldSelectedSections) => void; setTempAndroidValueStr: (tempAndroidValueStr: string | null) => void; updateSectionValue: (parameters: UpdateSectionValueParameters) => void; updateValueFromValueStr: (valueStr: string) => void; getSectionsFromValue: (value: TValue, fallbackSections?: InferFieldSection[] | null) => InferFieldSection[]; } export {};