import { IReliableRes, RBBuild, ReliableCfg } from '../interface'; export declare class ReliableClient { config: ReliableCfg; log: boolean; constructor(config?: ReliableCfg, log?: boolean); get(apiPath: string, query?: {}, log?: boolean): Promise; post(apiPath: string, params: any, log?: boolean): Promise; /** * reliable 新增报告 */ report(res: IReliableRes, log?: boolean): Promise; /** * 从reliable获取最近的5次ci执行记录, 默认是时间倒序排列,[0]最近 * @param opts * @param log */ getLatest(opts: { jobName?: string; gitBranch?: string; subJobName?: string; }, log?: boolean): Promise; /** * 获取之前的CI结果 * 默认最后一个 */ getOldCIResult(opts: { baseline: { covPercent?: number; passPercent?: number; }; appName: string; gitBranch: string; idx?: number; }): Promise; }