/**
 * Port utilities — find available ports, detect conflicts.
 */
/**
 * Check if a port is available (not in use).
 */
export declare function isPortAvailable(port: number, host?: string): Promise<boolean>;
/**
 * Find an available port starting from `preferred`, incrementing if busy.
 */
export declare function findAvailablePort(preferred: number, host?: string, maxAttempts?: number): Promise<number>;
/**
 * Get port usage info for diagnostics.
 */
export declare function checkPorts(config: {
    port: number;
    routerUrl: string;
}): Promise<{
    proxyPort: number;
    proxyAvailable: boolean;
    routerPort: number | null;
    routerAvailable: boolean | null;
}>;
