import type { SourceSpan } from "./ast.js"; import type { BeastSourceMap } from "./source-map.js"; export type DiagnosticSeverity = "error" | "warning"; export interface BeastDiagnostic { code: string; severity: DiagnosticSeverity; message: string; filename: string; span: SourceSpan; hint?: string; } export declare class BeastCompileError extends Error { readonly diagnostic: BeastDiagnostic; constructor(diagnostic: BeastDiagnostic); } export declare function formatDiagnostic(diagnostic: BeastDiagnostic, source?: string): string; /** * Re-anchor an error thrown by Octane while compiling generated TSRX onto the * authored `.btsx` source. Errors without a usable location pass through * unchanged. */ export declare function mapGeneratedError(error: unknown, map: BeastSourceMap, source: string, filename: string): unknown; //# sourceMappingURL=diagnostics.d.ts.map