import { AgentEditIntent, CollisionAlert, CollisionStats, AgentTool } from '../types.js'; export declare class CollisionDetective { private intents; private alerts; private stats; private initialized; init(): Promise; /** Agent declares intent to edit a file range. Returns immediate collision alert if any. */ declareIntent(agentTool: AgentTool, sessionId: string, filePath: string, startLine: number, endLine: number, intent: string, ttlMs?: number): Promise<{ intent: AgentEditIntent; collision: CollisionAlert | null; }>; /** Release an intent — agent finished or cancelled. */ releaseIntent(agentTool: AgentTool, sessionId: string, filePath: string): Promise; /** Mark a collision as resolved (by reassignment, merge, or user action). */ resolveCollision(alertId: string, resolution: string): Promise; /** All active (unresolved) alerts. */ activeAlerts(): CollisionAlert[]; /** Current stats snapshot. */ getStats(): CollisionStats; /** List active intents (for dashboards / debugging). */ activeIntents(): AgentEditIntent[]; private detectForIntent; private buildResolutionSuggestion; private keyForIntent; private sameSession; private evictExpired; private persist; } export declare function getCollisionDetective(): CollisionDetective; export declare function resetCollisionDetectiveForTests(): void; //# sourceMappingURL=collision-detective.d.ts.map