/** * NEXUS symbol ranking utilities. * * Priority scores and sort helpers used by `nexus context` and `nexus impact` * to prefer callable nodes (function, method, class) over structural nodes * (file, folder) that have no `calls` relations. * * @task T1473 */ /** * Priority score for nexus node kinds when ranking symbol search results. * * Callable symbols (function, method) rank highest so that `nexus context` * and `nexus impact` return meaningful callers/callees instead of * file/folder structural nodes which have zero `calls` relations. * * Lower score = higher priority (sort ascending). */ export declare const NODE_KIND_PRIORITY: Record; /** * Sort symbol search results so that callable nodes (function, method, class) * appear before structural nodes (file, folder). Within the same kind, prefer * exact name matches over partial matches. * * @param nodes - Array of nexus node records to sort. * @param symbolName - The query symbol name (for exact-match boost). * @returns Sorted copy of the input array. * * @example * const sorted = sortMatchingNodes(allNodes, 'dispatchFromCli'); */ export declare function sortMatchingNodes(nodes: Array>, symbolName: string): Array>; //# sourceMappingURL=symbol-ranking.d.ts.map