export interface I18nLocalizer { /** * Return the localization string for the provided key * @param {string} key the key to get the localization for. * @param {any} default the default value if a localization * value for the provided key could not be found. * @returns a localization string for the provided key or * the default value if provided otherwise, it return the * key. */ get(key: string, def?: any): string; /** * Return the localization string for the provided key * and replacing any placeholders in that string with * values from the replacements array. * @param {string} key the key to get the localization for. * @param {any[]|any} replacements an array of replacements for * any placeholders in the localizatioin text. * @param {string} default a default localization string to use if * a localization for the provided key could not be found. * @returns localization string for the provided key. * * @example * ```javascript * * var localizer; * var valueForSomeKey = 'this is my localization text {1}, {0}'; * localizer.format('somekey',['there','here']); * //result will be * //this is my localization text here, there * * ``` */ format(key: string, replacements?: any[] | any, def?: string): string; /** * Loads the localization dictionary. * @returns {Promise} a promise that resolves a dictionary * containing the localization of the current language. */ load(): Promise; has(key: string): boolean; formatNumber(num: number): string; randomLoadingMessage(): string; }