import { Failure } from '@cdklabs/tskb'; import { PatchReport } from '../patching'; export type ReportType = 'interpreting' | 'loading' | 'patch'; /** * A class to build a problem report for issues encountered during the spec import */ export declare class ProblemReport { get totalCount(): number; readonly counts: Record; readonly patchesApplied: PatchReport[]; private readonly reportMap; /** * Report a failure into the problem report */ reportFailure(aud: ReportAudience, type: ReportType, ...failures: Failure[]): void; reportPatch(aud: ReportAudience, ...patches: PatchReport[]): void; forAudience(aud: ReportAudience): BoundProblemReport; write(directory: string): Promise; private writeReportFile; } export declare class BoundProblemReport { private readonly report; private readonly aud; constructor(report: ProblemReport, aud: ReportAudience); /** * Report a failure into the problem report */ reportFailure(type: ReportType, ...failures: Failure[]): void; } export declare class ReportAudience { readonly id: string; static fromCloudFormationResource(res: string): ReportAudience; constructor(id: string); }