/**
 * Port utilities for checking and managing port conflicts
 */
export interface ProcessInfo {
    pid: number;
    command: string;
    port: number;
}
export interface PortStatus {
    port: number;
    available: boolean;
    process: ProcessInfo | null;
}
export interface PortClearResult {
    cleared: boolean;
    port: number;
    error?: string;
}
export interface PortStatusResult {
    hasConflicts: boolean;
    message: string;
}
/**
 * Check if a port is available
 */
export declare function isPortAvailable(port: number): Promise<boolean>;
/**
 * Get process info for a port
 */
export declare function getProcessOnPort(port: number): Promise<ProcessInfo | null>;
/**
 * Check all required ports and return status
 */
export declare function checkRequiredPorts(ports: number[]): Promise<PortStatus[]>;
/**
 * Format port status for display
 */
export declare function formatPortStatus(portStatus: PortStatus[]): PortStatusResult;
/**
 * Find an available port starting from a base port
 */
export declare function findAvailablePort(startPort: number, maxAttempts?: number): Promise<number | null>;
/**
 * Clear a port by terminating the process using it
 */
export declare function clearPort(port: number): Promise<PortClearResult>;
/**
 * Get port information for display
 */
export declare function getPortInfo(port: number): Promise<string>;
/**
 * Wait for port to become available
 */
export declare function waitForPort(port: number, timeout?: number): Promise<boolean>;
/**
 * Get all ports in use within a range
 */
export declare function getPortsInUse(startPort?: number, endPort?: number): Promise<number[]>;
declare const _default: {
    isPortAvailable: typeof isPortAvailable;
    getProcessOnPort: typeof getProcessOnPort;
    checkRequiredPorts: typeof checkRequiredPorts;
    formatPortStatus: typeof formatPortStatus;
    findAvailablePort: typeof findAvailablePort;
    clearPort: typeof clearPort;
    getPortInfo: typeof getPortInfo;
    waitForPort: typeof waitForPort;
    getPortsInUse: typeof getPortsInUse;
};
export default _default;
//# sourceMappingURL=portUtils.d.ts.map