export declare function isPortFree(port: number, host?: string): Promise; /** * PIDs currently holding `port` over TCP on the local host, via `lsof`. Used by * the orphan-port sweep to find escaped processes that survived a process-tree * kill but kept a port bound (see `Runner.stop` / `kill_orphan_ports`). * * Best-effort and POSIX-only: resolves to `[]` when nothing holds the port, * when `lsof` isn't installed (ENOENT), or on any error. The orchestrator's own * pid is filtered out so a self-referential listener can never be a target. */ export declare function findPortHolders(port: number): Promise; export interface PortHolderInfo { pid: number; /** Full command line, or a placeholder when the process vanished mid-lookup. */ command: string; /** `ps`'s lstart, e.g. "Thu Aug 14 09:52:16 2026". Undefined when unavailable. */ startedAt?: string; } /** * Describe the processes currently LISTENING on `port`: pid, full command line * and start time, via `ps`. Best-effort — a pid that exits between the lsof and * the ps still yields an entry (with a placeholder command) so callers can act * on it. */ export declare function describePortHolders(port: number): Promise; /** * Gracefully free `port`: SIGTERM every listener, wait up to `graceMs` for the * port to be released, then SIGKILL anything still holding it. Resolves `true` * when the port ended up free, `false` when something still holds it (e.g. a * Docker VM's port proxy that respawns, or a pid we may not signal). */ export declare function freePort(port: number, graceMs?: number): Promise; /** * Force-kill (SIGKILL) any process holding one of `ports`. Returns one entry per * killed (port, pid) so a reporter can surface exactly what was reaped. * * Best-effort: a port with no holder, a pid that's already gone or not * permitted to signal, or a platform without `lsof` all yield no entry. Never * throws. */ export declare function killPortHolders(ports: number[]): Promise>; //# sourceMappingURL=port.d.ts.map