import type { DetectedDevServer } from "./wire.js"; /** * Scan all listening TCP ports and group them by owning pid. * * Reuses the ports extension's native-tooling parser rather than * reimplementing lsof/ss/netstat parsing here. */ export declare function getTcpPortsByPid(): Promise>; /** * Best-effort resolution of a pid's current working directory. * * Swallows all errors and returns null when the process has exited, the * platform is unsupported, or the OS tooling cannot inspect the process. */ export declare function resolvePidCwd(pid: number): Promise; export declare function findProjectForCwd(cwd: string | null, projects: Array<{ id: string; name: string; path: string; }>): { id: string; name: string; } | null; /** * Scan listening TCP servers and match them to known Spectral projects. * * Results are deduplicated by `pid:port`, project-matched servers are sorted * first, and ties are ordered by port ascending for a stable settings UI. */ export declare function listDetectedDevServers(projects: Array<{ id: string; name: string; path: string; }>): Promise; //# sourceMappingURL=dev-port-detection.d.ts.map