/** * @license * Copyright 2025 Qwen * SPDX-License-Identifier: Apache-2.0 */ export type SupportedLanguage = 'en' | 'zh' | string; /** * Get the path to the user's custom locales directory. * Users can place custom language packs (e.g., es.js, fr.js) in this directory. * @returns The path to ~/.qwen/locales */ export declare function getUserLocalesDirectory(): string; export declare function detectSystemLanguage(): SupportedLanguage; export declare function setLanguage(lang: SupportedLanguage | 'auto'): void; export declare function setLanguageAsync(lang: SupportedLanguage | 'auto'): Promise; export declare function getCurrentLanguage(): SupportedLanguage; export declare function t(key: string, params?: Record): string; export declare function initializeI18n(lang?: SupportedLanguage | 'auto'): Promise;