import type { LocalizedString } from './LocalizedStringFormatter'; export type LocalizedStrings = { [lang: string]: Record; }; /** * Stores a mapping of localized strings. Can be used to find the * closest available string for a given locale. */ export declare class LocalizedStringDictionary { private strings; private defaultLocale; constructor(messages: LocalizedStrings, defaultLocale?: string); /** Returns a localized string for the given key and locale. */ getStringForLocale(key: K, locale: string): T; /** Returns all localized strings for the given locale. */ getStringsForLocale(locale: string): Record; static getGlobalDictionaryForPackage(packageName: string): LocalizedStringDictionary | null; }