import { AvailableAdjustKeyCode, FieldSectionsValueBoundaries, SectionOrdering, FieldSectionValueBoundaries, FieldParsedSelectedSections } from './useField.types'; import { FieldSectionType, FieldValueType, FieldSection, MuiPickersAdapter, FieldSectionContentType, PickersTimezone, PickerValidDate, FieldSelectedSections } from '../../../models'; export declare const getDateSectionConfigFromFormatToken: (utils: MuiPickersAdapter, formatToken: string) => Pick & { maxLength: number | undefined; }; export declare const getDaysInWeekStr: (utils: MuiPickersAdapter, timezone: PickersTimezone, format: string) => string[]; export declare const getLetterEditingOptions: (utils: MuiPickersAdapter, timezone: PickersTimezone, sectionType: FieldSectionType, format: string) => string[]; export declare const FORMAT_SECONDS_NO_LEADING_ZEROS = "s"; export declare const getLocalizedDigits: (utils: MuiPickersAdapter) => string[]; export declare const removeLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string; export declare const applyLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string; export declare const isStringNumber: (valueStr: string, localizedDigits: string[]) => boolean; /** * Remove the leading zeroes to a digit section value. * E.g.: `03` => `3` * Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed. */ export declare const cleanLeadingZeros: (valueStr: string, size: number) => string; export declare const cleanDigitSectionValue: (utils: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries, localizedDigits: string[], section: Pick) => string; export declare const adjustSectionValue: (utils: MuiPickersAdapter, timezone: PickersTimezone, section: TSection, keyCode: AvailableAdjustKeyCode, sectionsValueBoundaries: FieldSectionsValueBoundaries, localizedDigits: string[], activeDate: TDate | null, stepsAttributes?: { minutesStep?: number; }) => string; export declare const getSectionVisibleValue: (section: FieldSection, target: 'input-rtl' | 'input-ltr' | 'non-input', localizedDigits: string[]) => string; export declare const changeSectionValueFormat: (utils: MuiPickersAdapter, valueStr: string, currentFormat: string, newFormat: string) => string; export declare const doesSectionFormatHaveLeadingZeros: (utils: MuiPickersAdapter, timezone: PickersTimezone, contentType: FieldSectionContentType, sectionType: FieldSectionType, format: string) => boolean; /** * Some date libraries like `dayjs` don't support parsing from date with escaped characters. * To make sure that the parsing works, we are building a format and a date without any separator. */ export declare const getDateFromDateSections: (utils: MuiPickersAdapter, sections: FieldSection[], localizedDigits: string[]) => NonNullable; export declare const createDateStrForV7HiddenInputFromSections: (sections: FieldSection[]) => string; export declare const createDateStrForV6InputFromSections: (sections: FieldSection[], localizedDigits: string[], isRtl: boolean) => string; export declare const getSectionsBoundaries: (utils: MuiPickersAdapter, localizedDigits: string[], timezone: PickersTimezone) => FieldSectionsValueBoundaries; export declare const validateSections: (sections: TSection[], valueType: FieldValueType) => void; export declare const mergeDateIntoReferenceDate: (utils: MuiPickersAdapter, timezone: PickersTimezone, dateToTransferFrom: TDate, sections: FieldSection[], referenceDate: TDate, shouldLimitToEditedSections: boolean) => TDate; export declare const isAndroid: () => boolean; export declare const getSectionOrder: (sections: FieldSection[], shouldApplyRTL: boolean) => SectionOrdering; export declare const parseSelectedSections: (selectedSections: FieldSelectedSections, sections: FieldSection[]) => FieldParsedSelectedSections; export declare const getSectionValueText: (section: FieldSection, utils: MuiPickersAdapter) => string | undefined; export declare const getSectionValueNow: (section: FieldSection, utils: MuiPickersAdapter) => number | undefined;