import type { Message } from "@kenkaiiii/gg-ai"; import type { LanguageId } from "@kenkaiiii/gg-engine/internal/core/language-detector.js"; export type LanguagePackUpdate = { kind: "rebuild"; } | { kind: "append"; message: Message; } | { kind: "defer"; } | { kind: "none"; }; /** * How the terminal app takes on newly detected languages without throwing * away the prompt cache (same rule as AgentSession.announceNewLanguages): * before any reply nothing is cached yet, so the system prompt is rebuilt; * after that the update goes in as a hidden message, and only between turns — * never mid-run, where a user message would split a tool call from its result. */ export declare function planLanguagePackUpdate(opts: { added: ReadonlySet; cwd: string; hasReply: boolean; betweenTurns: boolean; }): LanguagePackUpdate;