/** * Port Check Utility * Check if a port is open before attempting to connect */ export interface PortCheckResult { open: boolean; host: string; port: number; error?: string; } /** * Check if a port is open on a given host * @param port The port number to check * @param host The host to check (default: localhost) * @param timeoutMs Timeout in milliseconds (default: 2000) */ export declare function checkPort(port: number, host?: string, timeoutMs?: number): Promise; /** * Parse a URL and extract host and port * Returns null if URL is invalid or doesn't have a port */ export declare function parseUrlForPortCheck(url: string): { host: string; port: number; } | null; /** * Check if a URL's server is reachable * Only checks localhost/127.0.0.1 URLs (skips external URLs) */ export declare function checkUrlPort(url: string, timeoutMs?: number): Promise; //# sourceMappingURL=port-check.d.ts.map