/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import { EventDispatcher, EventHandler } from './EventDispatcher'; type ComponentLocalizationRecord = Record; type LocalizationRecord = Record; type LocalizationStorage = { _components: LocalizationRecord; } & Record; /** * Helper class for Localization * * * @export * @class LocalizationHelper */ export declare class LocalizationHelper { static _strings: LocalizationStorage; static _stringsEventDispatcher: EventDispatcher; static _directionEventDispatcher: EventDispatcher; private static mutationObserver; static get strings(): LocalizationStorage; /** * Set strings to be localized * * @static * @memberof LocalizationHelper */ static set strings(value: LocalizationStorage); /** * returns body dir attribute to determine rtl or ltr * * @static * @returns {string} dir * @memberof LocalizationHelper */ static getDocumentDirection(): 'rtl' | 'ltr' | 'auto'; /** * Fires event when LocalizationHelper changes state * * @static * @param {EventHandler} event * @memberof LocalizationHelper */ static onStringsUpdated(event: EventHandler): void; static removeOnStringsUpdated(event: EventHandler): void; static onDirectionUpdated(event: EventHandler): void; static removeOnDirectionUpdated(event: EventHandler): void; private static _isDirectionInit; /** * Checks for direction setup and adds mutationObserver * * @private * @static * @returns * @memberof LocalizationHelper */ private static initDirection; /** * Provided helper method to determine localized or defaultString for specific string is returned * * @static updateStringsForTag * @param {string} tagName * @param stringsObj * @returns * @memberof LocalizationHelper */ static updateStringsForTag(tagName: string, stringObj: Record): Record; } export {}; //# sourceMappingURL=LocalizationHelper.d.ts.map