import { default as i18next, InitOptions, i18n as I18n } from 'i18next'; import { SegmentSpecificMessages } from '../types/types'; import { DeepPartial, StringValueOf } from '../types/helpers'; export declare const Namespace: { readonly DEFAULT: "default"; readonly THEME: "theme"; readonly OPTIONS: "options"; }; export type Namespaces = StringValueOf; /** * TODO: This function can be elimitated once we migrate away from React-Intl and can * update the messages keys directly in the message bundles. * */ export declare function contextualizeMessageKey(context: string, segmentMessages: DeepPartial): {}; export declare function addOptionsMessages(messagesWithLocale: { [key: string]: object; }, i18nextInstance?: I18n): void; export declare function createI18n(overrideOptions?: InitOptions): Promise; export default i18next;