import { detectKeyAnomalies } from '@sofagent/train'; import { type UpstreamWiringOptions } from './device-data-push'; /** 推送结果(结构化) */ export interface RouterSessionPushResult { /** 首行必须 [sofagent] 前缀 */ text: string; data: { isError: boolean; ok: boolean; reason?: 'invalid-schema' | 'duplicate-session' | 'write-failed' | 'invalid-params'; message: string; /** 展开记录数(切窗后) */ recordCount?: number; /** 会话文件落盘路径 */ sessionFile?: string; /** cost 台账入账行路径 */ costLedgerFile?: string; auditLogged: boolean; }; } /** * router session 推送承接(T7 第七章)。 * * @param args.raw exporter 推送 payload(RouterSessionSchema 形态——JSON 对象) * @param args.wiring 三层检测插槽 / 灰度分流接线选项(缺省从配置面解析—— * 非必填:MCP 入参面不变,装配侧可注入 L2 端点 / 灰度配置覆盖) */ export declare function routerSessionPush(args: { raw: unknown; wiring?: UpstreamWiringOptions; }): Promise; /** key 维度 harness 四件查询面(伴生导出——巡检入口消费) */ export declare function keyHarnessSnapshot(dataDir: string, thresholds?: Parameters[2]): { aggregates: Array<{ apiKeyId: string; totalTokens: number; totalCalls: number; totalCostUsd: number; byModel: Record; }>; anomalies: ReturnType; }; //# sourceMappingURL=router-session-push.d.ts.map