import type { TanninLocaleDomain } from 'tannin'; interface LocaleData { locale_data: { [key: string]: TanninLocaleDomain; }; } /** * Merge locale data into the Tannin instance. * * @param data Locale data. */ export declare function setLocaleData(data: LocaleData): void; /** * Retrieve the translation of the given text. * * @param text Text to translate. * @param [domain] Text domain. Unique identifier for retrieving translated strings. * @return Translated text. */ export declare function __(text: string, domain?: string): string; /** * Retrieve the translation of the given text with gettext context.. * * @param text Text to translate. * @param context Context information for the translators. * @param [domain] Text domain. Unique identifier for retrieving translated strings. * @return Translated text. */ export declare function _x(text: string, context: string, domain?: string): string; /** * Retrieve the translation of the given text with gettext context.. * * @param singular The text to be used if the number is singular. * @param plural The text to be used if the number is plural. * @param number The number to compare against to use either the singular or plural form. * @param [domain] Text domain. Unique identifier for retrieving translated strings. * @return Translated text. */ export declare function _n(singular: string, plural: string, number: number, domain?: string): string; /** * Retrieve the translation of the given text with gettext context.. * * @param singular The text to be used if the number is singular. * @param plural The text to be used if the number is plural. * @param number The number to compare against to use either the singular or plural form. * @param context Context information for the translators. * @param [domain] Text domain. Unique identifier for retrieving translated strings. * @return Translated text. */ export declare function _nx(singular: string, plural: string, number: number, context: string, domain?: string): string; export {}; //# sourceMappingURL=i18n.d.ts.map