import { IDateFormat } from '../types'; /** * Returns all country date format mappings. */ export declare function getAllDateFormats(): IDateFormat[]; /** * Finds the date format configurations for a country by its ISO2 code (case-insensitive). */ export declare function getDateFormatByCountry(iso2: string): IDateFormat; /** * Formats a Date object using a specified pattern (e.g. 'YYYY-MM-DD', 'DD/MM/YYYY'). * Only supports standard YYYY, MM, DD placeholders. */ export declare function formatDateWithPattern(date: Date, pattern: string): string; /** * Formats a Date object based on the country's default date format. */ export declare function formatDateByCountry(date: Date, iso2: string): string; /** * Parses a date string matching a specific pattern (e.g. 'YYYY-MM-DD', 'DD/MM/YYYY') and returns a Date object. * Returns null if the string is invalid or does not match the pattern. */ export declare function parseDateWithPattern(dateString: string, pattern: string): Date | null; /** * Parses a date string based on the country's default date format. */ export declare function parseDateByCountry(dateString: string, iso2: string): Date | null;