import { Spec } from "../specs/spec.js"; import { Rect } from "../page/rect.js"; import type { ValidationResult, ValidationListener, LayoutMeta } from "../validation/validation-result.js"; export interface LayoutSpecResult { name: string; status: "passed" | "warning" | "error"; place?: string; errors: string[]; warnings: string[]; meta: LayoutMeta[]; subLayout?: LayoutReport; } export interface LayoutSpecGroup { name: string; specs: LayoutSpecResult[]; } export interface LayoutObject { name: string; area?: Rect; specs: LayoutSpecResult[]; specGroups: LayoutSpecGroup[]; } export interface LayoutSection { name: string; place?: string; objects: LayoutObject[]; sections: LayoutSection[]; } export declare class LayoutReport { title?: string; sections: LayoutSection[]; objects: Map; screenshot?: Buffer; includedTags: string[]; excludedTags: string[]; get errors(): number; get warnings(): number; get passed(): number; get total(): number; private countByStatus; } export declare class LayoutReportListener implements ValidationListener { private readonly stack; private readonly report; constructor(); onBeforeSection(sectionName: string): void; onAfterSection(_sectionName: string): void; onBeforeObjectValidation(objectName: string, _spec: Spec): void; onAfterObjectValidation(objectName: string, _spec: Spec, result: ValidationResult): void; buildReport(): LayoutReport; private currentEntry; } //# sourceMappingURL=layout-report.d.ts.map