export declare enum Severity { CRITICAL = "critical", HIGH = "high", MEDIUM = "medium", LOW = "low", INFO = "info" } export declare const SEVERITY_ORDER: Record; export declare const SEVERITY_COLORS: Record; export declare const SEVERITY_ICONS: Record; export declare function severityFromString(s: string): Severity; export declare function meetsMinSeverity(severity: Severity, minSeverity: Severity): boolean; export interface Finding { id: string; ruleId: string; title: string; description: string; severity: Severity; confidence: 'high' | 'medium' | 'low'; filePath: string; line: number; column?: number; endLine?: number; endColumn?: number; codeSnippet: string; cwe?: string; owasp?: string; remediation?: string; aiEnhanced?: boolean; fingerprint: string; } export interface AIFinding { title: string; description: string; severity: Severity; confidence: 'high' | 'medium' | 'low'; line?: number; cwe?: string; remediation?: string; } export interface ScanResult { target: string; startTime: Date; endTime: Date; durationMs: number; filesScanned: number; filesSkipped: number; findings: Finding[]; summary: ScanSummary; aiEnabled: boolean; } export interface ScanSummary { total: number; bySeverity: Record; byCategory: Record; topFiles: Array<{ file: string; count: number; }>; } export interface Rule { id: string; name: string; severity: Severity; confidence: 'high' | 'medium' | 'low'; cwe?: string; owasp?: string; pattern: RegExp; antiPattern?: RegExp; languages: string[]; description: string; remediation: string; } export interface ScanOptions { target?: string; output?: 'terminal' | 'json' | 'sarif' | 'html'; severity?: Severity; ai?: boolean; provider?: 'huggingface' | 'anthropic' | 'openai'; fix?: boolean; quiet?: boolean; exclude?: string[]; maxFileSize?: number; configPath?: string; } export interface GhostPatchConfig { exclude: string[]; severity: Severity; ai: { provider: string; model: string; }; rules: { disabled: string[]; custom: Rule[]; }; maxFileSize: number; languages: string | string[]; } //# sourceMappingURL=severity.d.ts.map