import { type TFunction } from 'i18next'; /** * Initialize i18next with zh/en resources. * Call once at app startup. Returns t() and changeLanguage(). */ export declare function createI18n(lang: string): { t: TFunction; changeLanguage: (l: string) => void; }; /** * Global t() function. Must call createI18n() before use. */ export declare function t(key: string, options?: Record): string; /** * Detect language from env variable like LANG, LC_ALL, etc. * - "zh_CN.UTF-8" -> "zh" * - "en_US.UTF-8" -> "en" * Falls back to "en". */ export declare function detectLang(envLang?: string): string; //# sourceMappingURL=i18n.d.ts.map