/**
 * Retroactive Memory Scanner
 *
 * Scans existing memories in the database for signs of poisoning,
 * injection attacks, or sensitive data stored in plain text.
 * "Is Your AI Agent Compromised?"
 */
import type { DefenceConfig, ThreatIndicator } from '../types.js';
export interface ScanOptions {
    project?: string;
    limit?: number;
    config?: DefenceConfig;
}
export interface ThreatFinding {
    memoryId: number;
    title: string;
    severity: 'low' | 'medium' | 'high' | 'critical';
    threatType: ThreatIndicator;
    details: string;
    content_preview: string;
}
export interface ScanReport {
    totalScanned: number;
    cleanCount: number;
    suspiciousCount: number;
    threatsFound: ThreatFinding[];
    scanDuration: number;
    summary: string;
}
/**
 * Scan existing memories for signs of poisoning or sensitive data exposure.
 */
export declare function scanExistingMemories(options?: ScanOptions): ScanReport;
