import type { LoadedGraph, PositionIndex } from "@telorun/analyzer"; /** Diagnostic location lookup: which file owns the diagnostic's resource, * and what positions does that file's parse expose. Encapsulates the * routing both the editor and the vscode/CLI hosts previously wrote * inline against per-manifest metadata fields. * * Resolution order: * 1. `data.resource.{kind,name}` → search every LoadedFile in the graph * for the doc with matching kind+name. Returns that file's source + * its positions for the matching doc index. * 2. `data.filePath` → match the owning LoadedFile by canonical source. * * Returns `undefined` if the diagnostic carries no usable identity. */ export declare function findPositions(graph: LoadedGraph, diagnosticData: unknown): { file: string; positionIndex?: PositionIndex; sourceLine?: number; } | undefined; //# sourceMappingURL=find-positions.d.ts.map