import type { Diagnostic, DiagnosticSeverity, SourceLocation } from './types.js'; export declare class DiagnosticCollector { private items; add(code: string, severity: DiagnosticSeverity, location: SourceLocation, why: string, hint?: string): void; error(code: string, location: SourceLocation, why: string, hint?: string): void; warning(code: string, location: SourceLocation, why: string, hint?: string): void; hasErrors(): boolean; hasWarnings(): boolean; errors(): Diagnostic[]; warnings(): Diagnostic[]; getAll(): Diagnostic[]; isEmpty(): boolean; /** Promote all warnings to errors (--strict mode) */ promoteWarnings(): void; /** Serialise to JSON (--format json) */ toJSON(): object; } //# sourceMappingURL=collector.d.ts.map