UNPKG

pury

Version:

🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis

21 lines 846 B
import { type FileInfo, type SecretPattern, type AnalyzerResult } from '../types/index.js'; export declare class SecretsAnalyzer { private readonly patterns; private sensitivity; constructor(sensitivity?: 'low' | 'medium' | 'high'); analyze(files: FileInfo[], onProgress?: (current: number, total: number, currentFile: string) => void): Promise<AnalyzerResult>; private analyzeFile; private shouldSkipFile; private shouldApplyPattern; private findSecretMatches; private validateMatch; private calculateEntropy; private createFinding; private maskSecret; private getSuggestion; private loadPatterns; addCustomPattern(pattern: SecretPattern): void; getPatternCount(): number; setSensitivity(level: 'low' | 'medium' | 'high'): void; } //# sourceMappingURL=secrets-analyzer.d.ts.map