import { SwarmTask, AntColonyState, SwarmConfig } from '../types.js'; /** * Swarm Intelligence — ant colony optimization for code analysis prioritization. * * Pheromone Trails: * Each "ant" = lightweight analysis task for one file. * Ants deposit pheromone when they find issues: strength += severity × confidence. * Evaporation: strength *= (1 - evaporationRate) each cycle. * High-pheromone files = high-priority for deep analysis. * * Task Partitioning: * Large codebase → divide into territories by pheromone density. * High-density → more ants (deeper analysis). * Low-density → fewer ants (surface scan). * * Convergence: when top 10% of files account for 80% of total pheromone. */ export declare class SwarmIntelligence { private config; private state; private trailMap; constructor(config?: Partial); /** Initialize colony with files to analyze */ initialize(files: string[]): AntColonyState; /** Run one colony cycle — dispatch ants, collect results, update pheromones */ runCycle(analyzeFile: (file: string) => Promise<{ severity: number; confidence: number; issues: number; }>): Promise; /** Deposit pheromone on a trail (file path) */ depositPheromone(trail: string[], strength: number): void; /** Evaporate all pheromone trails */ evaporate(): void; /** Get files ranked by pheromone strength (highest first) */ getHighPriorityFiles(topN?: number): string[]; /** Partition files into task groups based on pheromone density */ partitionTasks(antCount: number): SwarmTask[][]; /** Calculate convergence score (0-1, higher = more focused) */ private calculateConvergence; /** Create a swarm task */ private createTask; /** Get colony state */ getState(): AntColonyState; /** Reset colony */ reset(): void; } //# sourceMappingURL=swarm-intelligence.d.ts.map