/** * Copyright 2025 Chris Bunting * * Secret Detection Engine - Enterprise-grade secret detection with 35+ pattern types */ import { SecretPattern } from './patterns/SecretPatterns.js'; export interface SecretDetection { type: string; category: string; severity: 'critical' | 'high' | 'medium' | 'low'; value: string; line: number; column: number; context: string; pattern: string; recommendation: string; } export interface SecretType { name: string; category: string; description: string; severity: 'critical' | 'high' | 'medium' | 'low'; } export declare class SecretDetector { private patterns; constructor(); /** * Scan code content for secrets with enhanced security and validation */ scan(code: string, filePath?: string): Promise; /** * Match a pattern against a line of code */ private matchPattern; /** * Validate if a detected match is likely a real secret with enhanced false positive reduction */ private isValidSecret; /** * Mask secret value for safe display with enhanced security */ private maskSecret; /** * Get context around a line */ private getContext; /** * Get all supported secret types */ getSupportedTypes(): SecretType[]; /** * Get categories of secrets */ getCategories(): string[]; /** * Get all detection patterns */ getPatterns(): Array & { pattern: string; }>; /** * Validate a secret (check if it's still active) */ validateSecret(secretType: string, value: string): Promise<{ valid: boolean; message: string; recommendations: string[]; }>; } //# sourceMappingURL=SecretDetector.d.ts.map