/**
 * Shared i18n utility for backend (CLI, SDK, Server)
 */
import type { AnyObject } from '@lzwme/fe-utils';
type Locale = 'zh-CN' | 'en';
export declare const LANG_CODES: Set<string>;
/**
 * Detect language from OS or environment
 */
export declare function detectLanguage(): Locale;
/**
 * Set global language context
 */
export declare function setLanguage(lang: Locale | null): void;
/**
 * Get global language context
 */
export declare function getLanguage(): Locale | null;
/**
 * Get language from various sources
 */
export declare function getLang(lang?: string): Locale;
/**
 * Translation function
 */
export declare function t(key: string, lang?: string, params?: AnyObject): string;
export {};
