import i18n, { type TFunction as I18NextTFunction } from 'i18next'; import React from 'react'; import { type ResourceLoader, type Resources, type TFunction, type TransProps } from './types'; export declare function loadNamespacedResources(namespace: string, language: string, loaders?: ResourceLoader[]): Promise; export declare function initDefaultI18nInstance(): Promise> | undefined; export declare function initDefaultReactI18nInstance(): void; export declare function initPluginTranslations(id: string, loaders?: ResourceLoader[]): Promise<{ language: string; }>; export declare function getI18nInstance(): typeof i18n; interface Module { type: 'backend'; } interface InitializeI18nOptions { ns?: string[]; language?: string; module?: Module; } export declare function getLanguage(): string; export declare function getResolvedLanguage(): string; export declare function changeLanguage(language?: string): Promise; export declare function initializeI18n({ language, ns, module, }: InitializeI18nOptions): Promise<{ language: string | undefined; }>; export declare function addResourceBundle(language: string, namespace: string, resources: Resources): void; export declare const t: TFunction; export declare function Trans(props: TransProps): React.ReactElement; export {};