/** * @license * Copyright 2025 Aether team * SPDX-License-Identifier: Apache-2.0 */ /** Special value meaning "detect from system settings" */ export declare const OUTPUT_LANGUAGE_AUTO = "auto"; /** * Checks if a value represents the "auto" setting. */ export declare function isAutoLanguage(value: string | undefined | null): boolean; /** * Normalizes a language input to its canonical form. * The language string is passed through as-is to support any language name * (English, Spanish, French, Japanese, etc). */ export declare function normalizeOutputLanguage(language: string): string; /** * Resolves the output language, converting 'auto' to the detected system language. */ export declare function resolveOutputLanguage(value: string | undefined | null): string; /** * Writes the output language rule file with the given language. */ export declare function writeOutputLanguageFile(language: string): void; /** * Updates the LLM output language rule file based on the setting value. * Resolves 'auto' to the detected system language before writing. */ export declare function updateOutputLanguageFile(settingValue: string): void; /** * Initializes the LLM output language rule file on application startup. * * @param outputLanguage - The output language setting value (e.g., 'auto', 'English', etc.) * * Behavior: * - If the rule file already exists and contains a valid language setting, do nothing (preserve user modifications) * - If the rule file doesn't exist, create it with the resolved language ('auto' -> English, or use as-is) */ export declare function initializeLlmOutputLanguage(outputLanguage?: string): void;