import type { PluginReportJson } from '@aws-cdk/cloud-assembly-schema'; import type { IStackFrameFinder } from '../stack-trace'; export interface ValidationReportFormatterOptions { /** * Customize how to find the relevant stack frames in the source code for each violation. * * @default - Use the first stack frame that points to a source location */ readonly frameFinder?: IStackFrameFinder; /** * Customize how file locations are rendered in the output. * * @default - Render paths relative to cwd */ readonly fileLocationRenderer?: IFileLocationRenderer; } export declare class ValidationReportFormatter { private readonly options; private readonly fileLocationRenderer; constructor(options: ValidationReportFormatterOptions); formatReports(reports: PluginReportJson[]): string[]; private formatViolationBlock; private sourceLocations; private formatConstructInfo; } export declare function stripAnsi(x: string): string; export interface IFileLocationRenderer { renderAbsoluteFilePath(filePath: string): string; } export declare function relativeFileLocationRenderer(root: string): IFileLocationRenderer;