/** A map of translation keys to per-locale strings. */ type TranslationsMap = Record>; /** * I18n translation class. */ declare class I18n { locale: string; translations: Translations; /** * @param props Constructor arguments. * @param props.locale Locale. * @param props.translations Translations. */ constructor({ locale, translations, }: { locale?: string | undefined; translations: Translations; }); /** * Get translation. * * @param str String to translate. * @returns Translated string. */ t(str: keyof Translations & string): string; } export { I18n }; //# sourceMappingURL=I18n.d.ts.map