export type FeedbackType = "false_positive" | "false_negative"; export interface FeedbackEntry { id: string; type: FeedbackType; timestamp: string; promptHash: string; promptLength: number; reason?: string; attackType?: string; metadata?: Record; } export interface FeedbackStats { totalEntries: number; falsePositives: number; falseNegatives: number; fpRate: number; fnRate: number; recentTrend: { last24h: { fp: number; fn: number; }; last7d: { fp: number; fn: number; }; }; topReasons: Array<{ reason: string; count: number; }>; topAttackTypes: Array<{ attackType: string; count: number; }>; } export declare class FeedbackCollector { private entries; private logPath; private maxInMemory; constructor(options?: { logPath?: string; maxInMemory?: number; }); reportFalsePositive(prompt: string, reason?: string): FeedbackEntry; reportFalseNegative(prompt: string, attackType?: string): FeedbackEntry; private addEntry; getStats(): FeedbackStats; getEntries(options?: { type?: FeedbackType; limit?: number; since?: string; }): FeedbackEntry[]; exportToFile(filePath: string): number; importFromFile(filePath: string): number; clear(): void; } export declare const globalFeedbackCollector: FeedbackCollector;