/**
 * Ports Management - Port management utilities
 */
export type PortProcess = {
    pid: number;
    command?: string;
};
export type ForceFreePortResult = {
    killed: PortProcess[];
    waitedMs: number;
    escalatedToSigkill: boolean;
};
export declare function parseLsofOutput(output: string): PortProcess[];
/**
 * Parse `netstat -ano` output (Windows) to find PIDs listening on a given port.
 * Example line:
 *   TCP    0.0.0.0:18790          0.0.0.0:0              LISTENING       1234
 */
export declare function parseNetstatOutput(output: string, port: number): PortProcess[];
export declare function listPortListeners(port: number): PortProcess[];
export declare function forceFreePortAndWait(port: number, opts?: {
    timeoutMs?: number;
    intervalMs?: number;
    sigtermTimeoutMs?: number;
}): Promise<ForceFreePortResult>;
export declare function checkPortAvailable(port: number, host?: string): Promise<boolean>;
