import { DiscoveredRoute, RouteConflict, RouteFixSuggestion } from './types'; /** * Result of conflict detection analysis */ export interface ConflictDetectionResult { /** Whether any errors were detected */ readonly hasErrors: boolean; /** Whether any warnings were detected */ readonly hasWarnings: boolean; /** List of detected conflicts */ readonly conflicts: readonly RouteConflict[]; /** Human-readable report */ readonly report: string; } /** * Detect all route conflicts in a set of discovered routes * @see core/conflict-detector.ts for implementation details */ export declare function detectRouteConflicts(routes: readonly DiscoveredRoute[]): ConflictDetectionResult; /** * Validate routes and throw on errors * @see core/conflict-detector.ts for implementation details * * @throws Error if route conflicts are detected */ export declare function validateRoutes(routes: readonly DiscoveredRoute[]): void; /** * Check if routes are valid (without throwing) * @see core/conflict-detector.ts for implementation details */ export declare function areRoutesValid(routes: readonly DiscoveredRoute[]): boolean; /** * Calculate route specificity for proper ordering * @see core/conflict-detector.ts for implementation details * * Higher specificity = more specific route = should be matched first */ export declare function calculateRouteSpecificity(route: DiscoveredRoute): number; /** * Sort routes by specificity (most specific first) * @see core/conflict-detector.ts for implementation details */ export declare function sortRoutesBySpecificity(routes: readonly DiscoveredRoute[]): DiscoveredRoute[]; /** * Detect nested dynamic route conflicts * @see core/conflict-detector.ts for implementation details */ export declare function findNestedDynamicConflicts(routes: readonly DiscoveredRoute[]): RouteConflict[]; /** * Detect deep nesting issues (warning) * @see core/conflict-detector.ts for implementation details */ export declare function findDeepNestingWarnings(routes: readonly DiscoveredRoute[], maxDepth?: number): RouteConflict[]; /** * Detect index route conflicts * @see core/conflict-detector.ts for implementation details */ export declare function findIndexLayoutConflicts(routes: readonly DiscoveredRoute[]): RouteConflict[]; /** * Generate fix suggestions for detected conflicts */ export declare function generateFixSuggestions(conflicts: readonly RouteConflict[]): RouteFixSuggestion[]; /** * Run all conflict detection patterns * @see core/conflict-detector.ts for implementation details */ export declare function detectAllConflicts(routes: readonly DiscoveredRoute[], options?: { maxNestingDepth?: number; checkNestedDynamic?: boolean; checkDeepNesting?: boolean; checkIndexLayouts?: boolean; }): ConflictDetectionResult;