import type { MessageSanitizeMode } from './types'; import type { ManagedReActAgentInterceptor } from '../../managed-interceptor'; import type { SanitizeRule } from '../../message-sanitize'; /** * 创建消息兜底拦截器。 * * 在发给 LLM 之前自动检测并修复不合法的消息序列。 * 位于 SYSTEM_POST 阶段,在所有拦截器处理完消息之后执行。 * * @param mode - 操作模式:'warn'(只警告不修复)或 'fix'(警告并修复) * @param rules - 校验规则列表,默认使用内置规则 */ export declare const createMessageSanitizeInterceptor: (mode: MessageSanitizeMode, rules?: ReadonlyArray) => ManagedReActAgentInterceptor;