/** * Commit message language resolution. * * Commit messages are written by the LLM, so "language support" is a * display-name resolution plus a cheap script heuristic for conversations * where the user never set `lang`. Only user messages are considered — the * assistant may write in a different language than the user speaks. * Latin-script languages (English, French, German, ...) are undetectable by * script and fall back to English. */ /** * Display name for a `lang` value: known codes map to their name, anything * else (a language name in any language) passes through verbatim for the * LLM to interpret. */ export declare function languageName(lang: string): string; /** * Detect the conversation language from user message texts by script. * * Returns a `lang` code for the first message with a distinctive script, * or `undefined` when none matches. Order matters: kana is checked before * han so Japanese text (which mixes kanji with kana) is classified as * Japanese, not Chinese. */ export declare function detectLanguage(userTexts: ReadonlyArray): string | undefined; /** * Extract text from user-role messages (structural type, no pi imports). * The user-side counterpart of `extractAssistantContext`. */ export declare function userMessageTexts(messages: ReadonlyArray): string[]; //# sourceMappingURL=language.d.ts.map