/** * @module language-resolution * @description SEI-02 — Detects the dominant language and script of user input * using Unicode range analysis. * * Supports Latin, CJK (Chinese/Japanese/Korean), Arabic, Cyrillic, * Devanagari, and Thai scripts with confidence scoring. */ /** Supported Unicode script categories */ export type ScriptType = "latin" | "cjk" | "arabic" | "cyrillic" | "devanagari" | "thai" | "unknown"; /** Result of language detection */ export interface LanguageDetection { /** ISO 639-1 language code (e.g., "en", "zh", "ja", "ko") */ language: string; /** Detected Unicode script category */ script: ScriptType; /** Confidence score between 0 and 1 */ confidence: number; } /** * Detects the dominant language and script of the input string * using Unicode codepoint range analysis. * * @param input - The raw user input string to analyze * @returns LanguageDetection with language code, script type, and confidence * * @example * ```typescript * const result = detectLanguage("你好世界") * // { language: "zh", script: "cjk", confidence: 0.95 } * ``` */ export declare function detectLanguage(input: string): LanguageDetection; //# sourceMappingURL=language-resolution.d.ts.map