import type { InitOptions } from 'i18next'; import type { GlobalData } from '../../types/index.js'; /** * Builds the i18next init config shared by the client runtime (`initL10n`) and the * build-time translate used in `renderForLlms` (`createBuildTranslate`), so both * resolve translations identically: same default-translation merge, same locale * fallback chain. * * @param l10n - The project's l10n data (`defaultLocale`, configured `locales`, and * `translations` overrides), or `undefined` for a project with no l10n config. * @param locale - The `lng` to set on the resulting config (the instance's `resources` * still cover every configured locale, so a fixed translator for any other locale can * still be derived from the same config via `i18next.getFixedT(otherLocale)`). * @returns An i18next `InitOptions` object with merged default + project translations * and a `code → langPart → defaultLocale` fallback chain. * * @example * ```ts * const config = await buildI18nConfig(l10n, 'ja'); * await i18next.init(config); * ``` */ export declare function buildI18nConfig(l10n: GlobalData['l10n'], locale: InitOptions['lng']): Promise; //# sourceMappingURL=build-i18n-config.d.ts.map