export declare function createDirIfNotExists(dir: string): void; export declare function handleResponse({ success, message, data }?: { success?: boolean; message?: string; data?: {}; }): { success: boolean; data: {}; message: string; }; export declare function getRootDir(): any; export declare function getProjectPkgJson(): any; export declare function getPkgJson(): any; /** * 判断端口是否可用 * @param port 端口号 * @returns Promise */ export declare function isPortValid(port: number): Promise; /** * 获取可用的端口号 * @param startPort 其实端口 * @param maxTry 最大尝试次数 * @returns Promise */ export declare function getValidPort(startPort: number, maxTry?: number): Promise;