import type { HostContext } from './types.js'; /** * 读取「模型请求中文化」的共享开关状态(只读)。该状态随本插件 Config 的 * volatile 变更实时更新;宿主传入 config 前保持 ready 为 false。 */ export declare function getModelState(): { ready: boolean; zhPrompt: boolean; zhAgentPrompt: boolean; zhToolDesc: boolean; zhContextInject: boolean; zhWebSearch: boolean; zhSearchOrder: string[]; zhSearchPerQuery: number; zhWebFetch: boolean; zhFetchOrder: string[]; promptInjection?: { enabled: boolean; text: string; target: string; order: number; }; /** 提示词配置同步计数(apply / volatile / 组装前主动同步),供诊断排查。 */ promptSync?: { applyCount: number; volatileCount: number; assembleCount?: number; lastAt: string; lastText: string | null; lastSource?: "apply" | "volatile" | "assemble"; }; }; /** * 插件 Config schema(宿主 0.1.7+ 投影配置表单与物化引用的依据)。字段全 * volatile:插件页/模型页可实时编辑、不经重启生效。schemastery 不可用时 * 返回 null(宿主跳过 schema,config 以普通值传入)。 */ export declare function createZhConfigSchema(z: any): unknown; export declare function installChinesePrompt(ctx: HostContext, config: Record, hooks?: { onModelStateChanged?: () => void; }): void; //# sourceMappingURL=chinese-prompt.d.ts.map