/** * IntentMatchStatsProvider — FR-W10 AC5 意图匹配统计 * * 记录意图匹配命中事件,提供 30 天统计和典型命中对话片段。 */ import type { IntentMatchStats } from './workbench-types.js'; import type { IntentMatchStatsProvider } from './intent-management-service.js'; export interface IntentMatchEvent { intentId: string; timestamp: Date; snippet: string; confidence: number; } export declare class InMemoryIntentMatchStatsProvider implements IntentMatchStatsProvider { private events; private maxSnippets; constructor(opts?: { maxSnippets?: number; }); /** Record a match hit for an intent */ recordMatch(intentId: string, snippet: string, confidence?: number): void; /** AC5: Get stats for an intent over the last N days */ getStats(intentId: string, days: number): Promise; /** Get all recorded events (for debugging/testing) */ getAllEvents(): readonly IntentMatchEvent[]; /** Prune events older than the given number of days */ prune(days: number): number; clear(): void; } //# sourceMappingURL=intent-match-stats-provider.d.ts.map