import type { AnalysisDiagnostic, Range } from "@telorun/analyzer"; import type { DiagnosticContext } from "../types.js"; /** Falls back through the chain from the VS Code extension's inline resolver * (ide/vscode/src/extension.ts:203-216 before this package existed): * 1. `d.range` if present. * 2. `positionIndex.get(d.data.path)` for a direct hit (covers diagnostics * that target an existing value, e.g. wrong type, enum violation). * 3. If the leaf is missing (e.g. "missing required property" — `.type` * isn't in the YAML yet), walk one segment up at a time and squiggle * just the parent's key identifier (`@key:`), not the parent's * full value block. Keeps the squiggle scoped to the incomplete entry * instead of spreading across every line of the surrounding map. * 4. Whole-line span at `sourceLine` when known. * 5. `(0,0)-(0,0)` as a last resort. Never undefined. */ export declare function resolveRange(d: AnalysisDiagnostic, ctx: Pick): Range; //# sourceMappingURL=range-resolver.d.ts.map