import { type LeakPattern } from "./patterns.js"; export interface Finding { patternId: string; patternName: string; category: LeakPattern["category"]; severity: LeakPattern["severity"]; recommendation: string; location: string; line: number; column: number; /** The leaked value itself, masked — never echoed back in full (we'd otherwise be re-leaking the very thing we just found). */ maskedMatch: string; } export interface ScanResult { scannedFiles: number; skippedFiles: number; totalFindings: number; findings: Finding[]; durationMs: number; } export declare function scanText(text: string, location?: string): Finding[]; /** Same as scanText, but also returns the text with every valid match replaced by a redaction placeholder. */ export declare function scanAndRedactText(text: string, location?: string): { findings: Finding[]; redactedText: string; }; export declare function scanBody(body: unknown): { findings: Finding[]; }; /** Redacts matches in place within `body`'s message/system text fields and returns the same (mutated) object. */ export declare function redactBody(body: unknown): { findings: Finding[]; redactedBody: unknown; }; export declare function scanFile(filePath: string): { findings: Finding[]; skipped: boolean; }; export declare function scanDirectory(dirPath: string, options?: { maxFiles?: number; include?: string[]; exclude?: string[]; }): ScanResult; //# sourceMappingURL=scanner.d.ts.map