import React from 'react'; export type LocaleKeys = string; export type DictionaryItem = { [key: string]: string; }; export type Dictionary = { [locale: string]: DictionaryItem | (() => Promise); }; export declare const Context: React.Context; declare const I18nProvider: React.Provider, I18nConsumer: React.Consumer; declare const useI18n: (dictionary: Dictionary, locale?: LocaleKeys, fallbackDictionary?: Dictionary) => (messageId: string, variables?: { [key: string]: string | number | undefined; }) => string; export { useI18n, I18nProvider, I18nConsumer };