/** * Diagnostic-path helpers for cross-manifest validators. Pure * functions, no env. * * `manifestPath` formats a JSON Pointer path the CLI / boot validator * can render either as a synthetic `manifest:Kind/name#/...` URI or * (when the caller supplies a file-paths map) as the consumer's actual * `file.yaml#//...` source location. * * `bestMatch` runs Levenshtein edit distance against a candidate list * and returns the closest match within distance < 3. Used for "did you * mean?" suggestions in `TRIGGER_TARGET_PROCEDURE_UNKNOWN`, * `VIEW_FROM_UNKNOWN_SCHEMA`, etc. */ /** Per-manifest source location surfaced by the CLI loader. */ export interface ManifestSourceLocation { readonly file: string; readonly docIndex: number; } /** * Multi-occurrence file-paths map: each `kind/name` key holds an * ordered list of source locations (length > 1 when the same name * appears in multiple YAML docs/files, which is itself a * DUPLICATE_NAME error but the locations need to remain individually * addressable so duplicate diagnostics point at the right copies). */ export type ManifestFilePaths = ReadonlyMap; export declare function manifestPath(kind: string, name: string, jsonPointer: string, filePaths?: ManifestFilePaths, /** 1-based occurrence index when the name has multiple file * locations (duplicate manifests). Defaults to 1 (first copy). */ occurrence?: number): string; export declare function bestMatch(target: string, candidates: ReadonlyArray): string | undefined; //# sourceMappingURL=ManifestPathDiagnoser.d.ts.map