import type { DateMaskFormat } from '../internal/date-mask'; import { type DateMask } from '../internal/mask'; export type UseDateMaskOptions = { format?: DateMaskFormat; }; export interface UseDateMaskResponse extends DateMask { formatDate(date: Date): string; parseDate(value: string): Date | null; } export declare function getLocaleDateMaskFormatOrDefault(locale: string): DateMaskFormat; /** * Generates a date mask based on the provided format. If no format is provided, it defaults to a format based on the * user's locale, assuming it matches one of the supported formats, or falls back to ISO-8601. * The mask is determined by the user's language (e.g 'AAAA-MM-JJ' for french, 'YYYY-MM-DD' otherwise). * The hook also returns a `parseDate` function that allows parsing the input string back into a Date object. */ export declare function useDateMask({ format: providedFormat, }?: UseDateMaskOptions): UseDateMaskResponse;