import { useIntl, type FormatDateOptions } from 'react-intl'; import type { Precision } from './shared.types.js'; type Options = { locale?: string; timeZone?: string; type?: 'datetime' | 'date' | 'time'; precision?: Precision; }; /** * Helper function to get the placeholder for a given date time part type. The placeholder is used to show the expected format of the input value to the user. For example, "YYYY" for year, "MM" for month, etc. * @internal */ export declare function getPlaceholder(type: keyof Intl.DateTimeFormatPartTypesRegistry, formatMessage: ReturnType['formatMessage']): string; /** * Hook providing localized datetime format and placeholders for given locale and timezone. If no locale is specified, the user region setting is used. * @internal */ export declare const useDateTimeMessages: (options?: Options) => { locale: string; timeZone: string | undefined; formatDateToParts: (this: void, value: Parameters[0] | string, opts?: FormatDateOptions) => Intl.DateTimeFormatPart[]; parts: Intl.DateTimeFormatPart[]; formatOptions: FormatDateOptions; formatString: string; getPlaceholder: typeof getPlaceholder; }; export {};