import { ChangeEvent } from 'react'; import { PickerDateType } from '../../models/pickers'; import { FieldSectionType } from '../../models/dateSection'; export interface DateFieldStateProps { value?: PickerDateType | null; defaultValue?: PickerDateType | null; onChange?: (date: PickerDateType | null) => void; format: string; minDate?: PickerDateType; maxDate?: PickerDateType; shouldDisableDate?: (date: PickerDateType) => boolean; disableFuture?: boolean; disablePast?: boolean; } export interface DateSection { type: FieldSectionType; value?: string; modified?: boolean; } export declare const fieldValueManager: { getSectionsFromValue: (date: PickerDateType | null, format: string, utils: any) => DateSection[]; reliableSectionModificationOrder: { year: number; month: number; day: number; weekDay: number; hours: number; minutes: number; seconds: number; meridiem: number; empty: number; }; mergeDateIntoReferenceDate: (utils: any, dateToTransferFrom: PickerDateType, sections: DateSection[], referenceDate: PickerDateType, shouldLimitToEditedSections: boolean, reliableSectionModificationOrder: Record) => PickerDateType; transferDateSectionValue: (utils: any, section: DateSection, dateToTransferFrom: PickerDateType, dateToTransferTo: PickerDateType) => PickerDateType; }; export declare function useDateFieldState(props: DateFieldStateProps): { date: import("dayjs").Dayjs; inputValue: string; error: string; handleInputChange: (event: ChangeEvent, activeSectionIndex?: number) => void; handleClear: () => void; updateValueFromValueStr: (valueStr: string) => boolean; setActiveSection: (sectionType: FieldSectionType | null) => void; isValid: boolean; characterQuery: string; };