/** * Intl API formatters for dates, numbers, currencies, and relative time. * * These are thin wrappers around the native Intl API with caching for performance. * * @module i18n/formatters */ import type { IntlFormatters } from './types.js'; /** * Default Intl formatters implementation. * * Uses native browser Intl API with caching for performance. * * @example * ```typescript * const formatters = createIntlFormatters(); * * formatters.formatDate(new Date(), 'pt-BR', { dateStyle: 'long' }); * // → "1 de janeiro de 2024" * * formatters.formatCurrency(1234.56, 'USD', 'en-US'); * // → "$1,234.56" * * formatters.formatRelativeTime(yesterday, 'en-US'); * // → "yesterday" * ``` */ export declare function createIntlFormatters(): IntlFormatters; /** * Clear all cached formatters. * Useful when locale changes or in testing. */ export declare function clearFormatterCache(): void; /** * Common date format presets. */ export declare const DateFormats: { short: Intl.DateTimeFormatOptions; medium: Intl.DateTimeFormatOptions; long: Intl.DateTimeFormatOptions; full: Intl.DateTimeFormatOptions; shortTime: Intl.DateTimeFormatOptions; mediumTime: Intl.DateTimeFormatOptions; longTime: Intl.DateTimeFormatOptions; shortDateTime: Intl.DateTimeFormatOptions; mediumDateTime: Intl.DateTimeFormatOptions; longDateTime: Intl.DateTimeFormatOptions; }; /** * Common number format presets. */ export declare const NumberFormats: { integer: Intl.NumberFormatOptions; decimal: Intl.NumberFormatOptions; percent: Intl.NumberFormatOptions; percentDecimal: Intl.NumberFormatOptions; }; //# sourceMappingURL=formatters.d.ts.map