#!/usr/bin/env node
/**
 * LocaleEnforcer - Force English output from GLM models
 *
 * Purpose: GLM models default to Chinese when prompts are ambiguous or contain Chinese context.
 * This module always injects "MUST respond in English" instruction into system prompt or first user message.
 *
 * Usage:
 *   const enforcer = new LocaleEnforcer();
 *   const modifiedMessages = enforcer.injectInstruction(messages);
 *
 * Strategy:
 *   1. If system prompt exists: Prepend instruction
 *   2. If no system prompt: Prepend to first user message
 *   3. Preserve message structure (string vs array content)
 */
interface Message {
    role: string;
    content: string | Array<{
        type: string;
        text: string;
    }>;
}
interface LocaleEnforcerOptions {
    instruction?: string;
}
export declare class LocaleEnforcer {
    private instruction;
    constructor(options?: LocaleEnforcerOptions);
    /**
     * Inject English instruction into messages
     * @param messages - Messages array to modify
     * @returns Modified messages array
     */
    injectInstruction(messages: Message[]): Message[];
}
export {};
//# sourceMappingURL=locale-enforcer.d.ts.map