import type { PolicyValidationReportJson, PolicyViolationSeverity } from '@aws-cdk/cloud-assembly-schema'; import type { App } from '../../../core/lib/app'; /** * An API to access and assert on the validation report of an application * * Currently still a helper API because I want to centralize the loading and asserting * in this codebase without necessarily committing to any public API yet. */ export declare class AssemblyValidationReport { readonly report: PolicyValidationReportJson; /** * During testing, create an App() with this as `postCliContext` in order to be able to use `AssemblyValidationReport.fromApp(app)`. */ static readonly APP_CONTEXT: { "@aws-cdk/core:failSynthOnValidationErrors": boolean; "@aws-cdk/core:strictCfnValidateErrors": boolean; }; /** * Disable the test suppressions that are automatically applied to all tests via the global App init hook (jest-global-app-testhook.ts). * * Returns a function that must be called to restore the global App init hook to its previous state. */ static disableTestSuppressions(): () => void; /** * Synthesize the given app and return its validation report. */ static fromApp(app: App): AssemblyValidationReport; private constructor(); pluginReport(pluginName: string): import("@aws-cdk/cloud-assembly-schema").PluginReportJson; /** * All violations in all reports */ allViolations(): import("@aws-cdk/cloud-assembly-schema").PolicyViolationJson[]; hasViolation(pattern?: PartialViolation): void; hasNoViolation(pattern?: PartialViolation): void; } export interface PartialViolation { readonly ruleName?: any; readonly description?: any; readonly severity?: PolicyViolationSeverity | any; }