import type { FormatDateOptions } from 'react-intl'; import type { DateTimePickerProps } from '../types.js'; /** Provides functions to convert a date object to its parts and vice versa. */ export declare function useDateTimeFormat(type?: DateTimePickerProps['type'], precision?: DateTimePickerProps['precision']): { format: FormatDateOptions; toParts: (date: Date) => Intl.DateTimeFormatPart[]; toDateTime: (parts: Intl.DateTimeFormatPart[]) => Date | null; emptyParts: { type: keyof Intl.DateTimeFormatPartTypesRegistry; value: string; }[]; };