import { CustomFormats, Formatters, IntlFormatters, OnErrorFn } from './types.js'; export declare function getFormatter({ locale, formats, onError, timeZone, }: { locale: string; timeZone?: string; formats: CustomFormats; onError: OnErrorFn; }, type: 'date' | 'time' | 'dateTimeRange', getDateTimeFormat: Formatters['getDateTimeFormat'], options?: Parameters[1]): Intl.DateTimeFormat; export declare function formatDate(config: { locale: string; timeZone?: string; formats: CustomFormats; onError: OnErrorFn; }, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters): string; export declare function formatTime(config: { locale: string; timeZone?: string; formats: CustomFormats; onError: OnErrorFn; }, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters): string; export declare function formatDateTimeRange(config: { locale: string; timeZone?: string; formats: CustomFormats; onError: OnErrorFn; }, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[from, to, options]: Parameters): string; export declare function formatDateToParts(config: { locale: string; timeZone?: string; formats: CustomFormats; onError: OnErrorFn; }, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters): Intl.DateTimeFormatPart[]; export declare function formatTimeToParts(config: { locale: string; timeZone?: string; formats: CustomFormats; onError: OnErrorFn; }, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters): Intl.DateTimeFormatPart[];