import { UseFieldInternalProps, UseFieldParams, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, UseFieldForwardedProps } from './useField.types'; import { FieldSection, FieldSelectedSections, PickersTimezone, PickerValidDate } from '../../../models'; export interface UpdateSectionValueParams { /** * The section on which we want to apply the new value. */ activeSection: TSection; /** * Value to apply to the active section. */ newSectionValue: string; /** * If `true`, the focus will move to the next section. */ shouldGoToNextSection: boolean; } export interface UseFieldStateResponse { state: UseFieldState; activeSectionIndex: number | null; parsedSelectedSections: FieldParsedSelectedSections; setSelectedSections: (sections: FieldSelectedSections) => void; clearValue: () => void; clearActiveSection: () => void; updateSectionValue: (params: UpdateSectionValueParams) => void; updateValueFromValueStr: (valueStr: string) => void; setTempAndroidValueStr: (tempAndroidValueStr: string | null) => void; sectionsValueBoundaries: FieldSectionsValueBoundaries; getSectionsFromValue: (value: TValue, fallbackSections?: TSection[] | null) => TSection[]; localizedDigits: string[]; timezone: PickersTimezone; } export declare const useFieldState: , TInternalProps extends UseFieldInternalProps>(params: UseFieldParams) => UseFieldStateResponse;