import i18next, { type Resource } from 'i18next'; import { Locale } from '../../../client-api-platform/src/shapes'; export type LanguagePacksRegime = 'http' | 'legacy'; export declare const HTTP_BACKEND_REQUEST_OPTIONS: RequestInit; export declare const resolveLanguagePacksRegime: (httpFlagEnabled: boolean, languagePacksApiUrl?: string) => LanguagePacksRegime; export declare const getHttpBackendOptions: (loadPath: string) => { loadPath: string; requestOptions: RequestInit; }; /** * Overlay OFD's canonical en-US pack on the bootstrap stub. * Fire-and-forget: first paint and the logo menu must not wait on this GET. */ export declare const overlayEnglishFromHttpBackend: () => void; export type InitI18nextOptions = { languagePacksApiUrl?: string; }; declare function initI18next(language?: Locale, options?: InitI18nextOptions): Promise; export declare const setLanguageInI18next: (locale: Locale) => Promise; declare const t: import("i18next").TFunction<["translation", ...string[]], undefined>; export { initI18next, i18next, t, type Resource }; export { useTranslation } from 'react-i18next';