import { TranslationError } from './models/TranslationError'; import { FormatMessageOptions, Locale, Message } from './models'; export declare class Translator { private readonly messages; private memo; readonly language: string; onError: ErrorLogger; constructor(language?: string, locales?: Locale[]); formatDate: (value: Date, options?: Intl.DateTimeFormatOptions) => string; formatNumber: (value: number, options?: Intl.NumberFormatOptions) => string; translate: (id: string, options?: FormatMessageOptions) => string; getMessageById: (id: string, defaultMessage?: string) => Message | object | null; } export type ErrorLogger = (error: TranslationError) => void;