Spaces:
Running
Running
File size: 731 Bytes
fd8cdf5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import type { DashboardNode, DashboardEdge, DashboardLayer } from '../../types/dashboard.js';
/**
* Detects architectural layers by grouping nodes based on tags
* and directory structure.
*
* Layer detection strategy (priority order):
* 1. Check node tags for known patterns (component, api, model, util, test)
* 2. Fall back to grouping by first directory segment
* 3. Root files (no directory) go to "Root" layer
*
* @param nodes - All graph nodes to classify into layers
* @param edges - Graph edges (unused, reserved for future dependency analysis)
* @returns Array of detected layers with assigned node IDs
*/
export declare function detectLayers(nodes: DashboardNode[], edges: DashboardEdge[]): DashboardLayer[];
|