/** * Secret pattern types and interfaces */ /** * Secret pattern category */ export declare enum PatternCategory { Cloud = "cloud", VCS = "vcs", Payment = "payment", Communication = "communication", AI = "ai", Database = "database", Auth = "auth", Crypto = "crypto", Generic = "generic" } /** * Secret pattern definition */ export interface SecretPattern { /** Unique identifier for the pattern */ id: string; /** Human-readable name */ name: string; /** Pattern category */ category: PatternCategory; /** Service/provider name */ service: string; /** Regular expression for matching */ regex: RegExp; /** Base confidence score (0-100) */ confidence: number; /** Example secrets (for testing) */ examples: string[]; /** Remediation instructions */ remediation: string; /** Reference documentation URLs */ references?: string[]; } /** * Detection result for a single match */ export interface DetectionResult { /** Was a secret detected? */ detected: boolean; /** Matched pattern (if detected) */ pattern?: SecretPattern; /** Matched secret value */ value?: string; /** Final confidence score (0-100) */ confidence?: number; /** Line number where found (1-indexed) */ line?: number; /** Column position where found (0-indexed) */ column?: number; } /** * File scan result */ export interface FileScanResult { /** File path */ filePath: string; /** All detections in this file */ detections: DetectionResult[]; /** Scan duration in milliseconds */ scanTimeMs: number; /** Was file skipped? */ skipped: boolean; /** Skip reason */ skipReason?: string; } //# sourceMappingURL=types.d.ts.map