/** * Port occupancy checker utility * Checks if a port is in use and attempts to identify the occupying process */ export interface PortCheckResult { inUse: boolean; pid?: number; processName?: string; commandLine?: string; isSelfProject?: boolean; } /** * Check if port is in use */ export declare function checkPort(port: number): Promise; /** * Checks port availability and exits process if port is in use. * * This function checks if the specified port is already occupied and handles * conflict scenarios with detailed error messages. * * @param port - The port number to check * @returns Promise that resolves when port is available, never rejects * * @example * ```typescript * await checkPortWithExit(7788); * // If port is available, continues execution * // If port is in use by this project, shows error and exits with code 1 * // If port is in use by another application, shows error and exits with code 1 * ``` */ export declare function checkPortWithExit(port: number): Promise; //# sourceMappingURL=port-checker.d.ts.map