import type { LintDiagnostic } from "../../lint/rule.js"; /** * LSP diagnostic as returned in textDocument/publishDiagnostics. */ export interface LspDiagnostic { range: { start: { line: number; character: number; }; end: { line: number; character: number; }; }; severity: number; code?: string; source: string; message: string; data?: { ruleId: string; fix?: unknown; }; } /** * Convert chant LintDiagnostics to LSP diagnostics. * Converts 1-based lines/columns to 0-based. */ export declare function toLspDiagnostics(diagnostics: LintDiagnostic[]): LspDiagnostic[]; //# sourceMappingURL=diagnostics.d.ts.map