/**
 * Code Anomaly Detector
 *
 * Detects anomalies and potential issues in code:
 * - Unusual patterns
 * - Security vulnerabilities
 * - Performance anti-patterns
 * - Inconsistencies
 */
export type AnomalySeverity = 'info' | 'warning' | 'error' | 'critical';
export type AnomalyCategory = 'security' | 'performance' | 'consistency' | 'complexity' | 'deprecated' | 'style' | 'logic';
export interface CodeAnomaly {
    id: string;
    category: AnomalyCategory;
    severity: AnomalySeverity;
    message: string;
    description: string;
    line?: number;
    column?: number;
    code?: string;
    suggestion?: string;
    reference?: string;
}
export interface AnomalyReport {
    filePath?: string;
    language: string;
    anomalies: CodeAnomaly[];
    summary: {
        total: number;
        byCategory: Record<AnomalyCategory, number>;
        bySeverity: Record<AnomalySeverity, number>;
    };
    scannedAt: Date;
}
/**
 * Detect anomalies in code
 */
export declare function detectAnomalies(code: string, language?: string, filePath?: string): AnomalyReport;
/**
 * Format anomaly report for display
 */
export declare function formatAnomalyReport(report: AnomalyReport): string;
/**
 * Get anomaly statistics
 */
export declare function getAnomalyStats(reports: AnomalyReport[]): {
    totalFiles: number;
    totalAnomalies: number;
    byCategory: Record<AnomalyCategory, number>;
    bySeverity: Record<AnomalySeverity, number>;
    topIssues: Array<{
        message: string;
        count: number;
    }>;
};
export default detectAnomalies;
