import type { ListeningEntry } from "./ps.js"; /** A listening socket, before its process's working directory is read. */ export type Listener = Omit; /** * The listening sockets in what `lsof -nP -iTCP -sTCP:LISTEN -Fpn` printed: * a `p` line for each process, then an `n:` line for each * of its sockets, among `f` lines. A socket on both IPv4 and IPv6 is * listed once for each. */ export declare function parseLsof(stdout: string): Listener[]; /** * The listening sockets in what `ss -Hltnp` printed, a line each, the local * address fourth and the process last, as `users:(("node",pid=12,fd=20))`. */ export declare function parseSs(stdout: string): Listener[]; /** * Each process's working directory in what `lsof -a -d cwd -p -Fpn` * printed: a `p` line, then its `n` line. */ export declare function parseLsofCwds(stdout: string): Map;