import { type CitySource, type CitySourceIssue, type CitySourceLayerName, type CitySourceLayerReport, type CitySourceValidationReport, type IssueScope, type IssueSeverity } from './types'; export declare const DEFAULT_MAX_ISSUES_PER_CODE = 25; /** Collects issues, keeping the first `maxPerCode` of each code and counting the rest. */ export declare class IssueSink { private readonly maxPerCode; readonly issues: CitySourceIssue[]; readonly totals: Record; constructor(maxPerCode?: number); add(severity: IssueSeverity, code: string, scope: IssueScope, message: string, id?: string): void; error(code: string, scope: IssueScope, message: string, id?: string): void; warn(code: string, scope: IssueScope, message: string, id?: string): void; get errorCount(): number; get warningCount(): number; } export interface ValidateOptions { maxIssuesPerCode?: number; /** Issues found while loading (missing files, hash mismatches); folded into the report. */ sink?: IssueSink; /** Per-layer file facts from the loader, merged into `report.layers`. */ layerFacts?: Partial>>; } export declare function validateCitySource(source: CitySource, options?: ValidateOptions): CitySourceValidationReport; /** A readable report: verdict, issues grouped by code with examples, then the layer table. */ export declare function formatValidationReport(report: CitySourceValidationReport): string;