/** * Parse `netstat -ano -p TCP` output for PIDs whose LOCAL address is on `port`. * * Matches the local-address column ending in `:port` rather than the connection * state, so it is locale-independent (Windows localizes "LISTENING"). The * daemon's listener and any server-side ESTABLISHED sockets all share its PID, * so this reliably yields the daemon PID(s). A client dialing out to `:port` * has the port in its *foreign* column, not local, so it is correctly ignored. */ export declare function parsePidsFromNetstat(output: string, port: number): number[]; /** Parse a newline-separated PID list, e.g. from `lsof -t`. */ export declare function parsePidsFromLsof(output: string): number[]; /** Parse `ss -ltnp` output, pulling PIDs out of `users:(("node",pid=1234,...))`. */ export declare function parsePidsFromSs(output: string): number[]; export declare function findDaemonPidsByPort(port: number): Promise; //# sourceMappingURL=find-daemon-pids.d.ts.map