UNPKG

remcode

Version:

Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.

32 lines (31 loc) 862 B
/** * Port Management Utilities * * Handles smart port selection with auto-increment and availability checking */ export interface PortResult { port: number; available: boolean; autoSelected?: boolean; } /** * Port Manager class for handling port selection */ export declare class PortManager { /** * Check if a port is available */ static isPortAvailable(port: number): Promise<boolean>; /** * Check if a port is available on a specific interface */ private static checkPortOnInterface; /** * Find an available port starting from the preferred port */ static findAvailablePort(preferredPort: number, maxAttempts?: number): Promise<PortResult>; /** * Get an available port with user-friendly messaging */ static getAvailablePort(preferredPort: number): Promise<number>; }