/**
 * CLI i18n initialization module.
 *
 * Configures i18next for the CLI presentation layer using the
 * common and cli namespaces. Translation files are loaded from
 * the shared translations/ directory at the project root.
 */
import { type i18n } from 'i18next';
declare const FALLBACK_LANGUAGE = "en";
/**
 * Resolve the translations directory. In development this is at the
 * project root; in production (dist/) it is resolved relative to this
 * file's location.
 */
declare function getTranslationsDir(): string;
/**
 * Load a single namespace JSON file for a given locale.
 * Returns an empty object if the file does not exist or cannot be parsed.
 */
export declare function loadNamespace(translationsDir: string, locale: string, ns: string): Record<string, unknown>;
/**
 * Build i18next resources object by loading namespace files from disk.
 */
export declare function buildResources(translationsDir: string, language: string, namespaces: readonly string[]): Record<string, Record<string, Record<string, unknown>>>;
/**
 * Initialize i18next for the CLI layer.
 *
 * Creates a dedicated i18next instance (via createInstance) to avoid
 * conflicts with other presentation layers sharing the same process.
 *
 * @param language - BCP-47 language code (e.g. 'en', 'ru', 'ar')
 * @returns The initialized i18next instance
 */
export declare function initI18n(language: string): Promise<i18n>;
/**
 * Get the initialized CLI i18next instance.
 * Throws if initI18n() has not been called.
 */
export declare function getCliI18n(): i18n;
export { FALLBACK_LANGUAGE, getTranslationsDir };
//# sourceMappingURL=i18n.d.ts.map