/**
 * Memory Scanner
 *
 * Scans AI agent memory files for planted instructions, poisoned
 * memories, and suspicious content. Checks:
 *   - ~/.claude/ project memory files (CLAUDE.md, memory/)
 *   - ~/.shieldcortex/ memory database
 *   - Cursor/Windsurf persistent memory locations
 */
import type { AuditFinding, ScannerResult } from './types.js';
export declare function isShieldCortexOwnMemoryPath(filePath: string): boolean;
export type MemoryFileRisk = 'SAFE' | 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
export interface MemoryFileEvidence {
    snippet: string;
    reason: string;
}
export interface DiscoveredMemoryFile {
    path: string;
    source: string;
}
export interface MemoryFileScanRecord {
    id: string;
    path: string;
    source: string;
    sizeBytes: number;
    modifiedAt: string | null;
    contentExcerpt: string;
    auditId: number | null;
    anomalyScore: number;
    firewallResult: 'ALLOW' | 'QUARANTINE' | 'BLOCK';
    risk: MemoryFileRisk;
    reason: string;
    threatIndicators: string[];
    evidence: MemoryFileEvidence[];
    findings: AuditFinding[];
}
export interface MemoryFileScanSummary {
    total: number;
    safe: number;
    flagged: number;
    critical: number;
    high: number;
    medium: number;
}
export interface DetailedMemoryFileScanResult {
    scannedAt: string;
    summary: MemoryFileScanSummary;
    files: MemoryFileScanRecord[];
    durationMs: number;
}
export interface MemoryFileQuarantineQueueItem {
    fileId: string;
    path: string;
    quarantineId: number | null;
    status: 'created' | 'updated' | 'skipped_safe' | 'skipped_reviewed';
}
export interface MemoryFileQuarantineQueueResult {
    created: number;
    updated: number;
    skippedSafe: number;
    skippedReviewed: number;
    items: MemoryFileQuarantineQueueItem[];
}
export interface MemoryFileDiscoveryOptions {
    homeDir?: string;
    cwd?: string;
    maxFiles?: number;
    maxFileSize?: number;
}
export declare function queueMemoryFileScanFindings(result: DetailedMemoryFileScanResult): MemoryFileQuarantineQueueResult;
/**
 * Find memory-related files across known AI agent locations.
 */
export declare function discoverMemoryFiles(options?: MemoryFileDiscoveryOptions): DiscoveredMemoryFile[];
export declare function scanMemoryFilesDetailed(options?: MemoryFileDiscoveryOptions): DetailedMemoryFileScanResult;
/**
 * Run the memory scanner.
 */
export declare function scanMemories(): ScannerResult;
