export type SmellType = 'god_file' | 'rule_sprawl' | 'dip_violation' | 'duplicate_code' | 'hidden_rules' | 'buried_legacy' | 'naming_drift' | 'missing_tests' | 'hidden_side_effects' | 'hardcoded_values'; export type SmellSeverity = 'high' | 'medium' | 'low'; export interface CodeSmell { file: string; line?: number; smell: SmellType; severity: SmellSeverity; message: string; suggestion?: string; } export interface AuditorTriageInput { projectId?: string; path?: string; checks?: SmellType[]; extensions?: string[]; } export interface AuditorTriageOutput { scanned: number; issues: CodeSmell[]; summary: { high: number; medium: number; low: number; }; } export interface AuditorNamingInput { projectId?: string; conventions?: string; extensions?: string[]; } export interface NamingViolation { file: string; line: number; found: string; expected: string; category: 'variable' | 'function' | 'class' | 'file' | 'constant'; } export interface AuditorNamingOutput { violations: NamingViolation[]; stats: { checked: number; passed: number; violations: number; }; } export interface RefactorCandidate { file: string; score: number; factors: { lines: number; complexity: number; smellCount: number; testCoverage?: number; lastModified?: string; changeFrequency?: number; }; recommendation: 'split' | 'extract' | 'simplify' | 'delete' | 'refactor'; } export interface AuditorRefactorInput { projectId?: string; limit?: number; extensions?: string[]; } export interface AuditorRefactorOutput { candidates: RefactorCandidate[]; totalFiles: number; } export interface CodeHealthMetrics { totalFiles: number; totalLines: number; godFiles: number; avgFileSize: number; maxFileSize: number; namingViolations: number; smellCount: { high: number; medium: number; low: number; }; } export interface AuditorHealthInput { projectId?: string; extensions?: string[]; } export interface AuditorHealthOutput { timestamp: string; project: string; metrics: CodeHealthMetrics; trends?: { godFiles: 'improving' | 'stable' | 'degrading'; smells: 'improving' | 'stable' | 'degrading'; }; topOffenders: Array<{ file: string; issues: number; }>; } export interface AuditorInitInput { projectId?: string; } export interface AuditorInitOutput { path: string; created: boolean; } export interface HealthSnapshot { timestamp: string; metrics: CodeHealthMetrics; commit?: string; } export interface AuditorLogHealthInput { projectId?: string; commit?: string; } export interface AuditorLogHealthOutput { logged: boolean; path: string; snapshot: HealthSnapshot; entryCount: number; } export interface AuditorHealthHistoryInput { projectId?: string; limit?: number; } export interface AuditorHealthHistoryOutput { entries: HealthSnapshot[]; trends: { godFiles: 'improving' | 'stable' | 'degrading'; smells: 'improving' | 'stable' | 'degrading'; totalLines: 'growing' | 'stable' | 'shrinking'; }; summary: { oldestEntry: string; newestEntry: string; totalSnapshots: number; }; } export interface AuditorError { error: string; details?: string; } export declare function auditorTriage(input: AuditorTriageInput): Promise; export declare function auditorHealth(input: AuditorHealthInput): Promise; export declare function auditorRefactorScore(input: AuditorRefactorInput): Promise; export declare function auditorInit(input: AuditorInitInput): Promise; export declare function auditorNamingAudit(input: AuditorNamingInput): Promise; export declare function auditorLogHealth(input: AuditorLogHealthInput): Promise; export declare function auditorHealthHistory(input: AuditorHealthHistoryInput): Promise; export declare function isAuditorError(result: unknown): result is AuditorError; //# sourceMappingURL=auditor.d.ts.map