/**
 * Windows: resolve which PID owns a listening TCP port and kill process trees reliably.
 * Used for Gateway cleanup (npm spawns a child Node; SIGTERM on parent leaves listeners behind).
 */
/**
 * Find the PID that is LISTENING on local TCP `port` (IPv4/IPv6).
 * Skips TIME_WAIT lines (PID 0) — those caused bogus "System Idle Process" in the Connection Portal.
 */
export declare function findListeningPidWindows(port: number): number | null;
/** Image name from tasklist CSV (e.g. node.exe) */
export declare function getWindowsProcessImageName(pid: number): string | null;
/**
 * Kill a process and all descendants on Windows (critical for npm-run Gateway children).
 */
export declare function killPidTreeWindows(pid: number): boolean;
//# sourceMappingURL=win-port-pid.d.ts.map