/** * @fileoverview Nearest-key suggestion for "did you mean …?" hints. * * Used by the enrichment validation surfaces (`EnrichmentAudit`, * `findUnknownKeys`) to pair an unrecognized key with its closest known * sibling. Pure string utility — no context, no schema awareness. * * @module nearestKey */ /** * The candidate closest to `target`, or `undefined` when nothing is close * enough to be a plausible typo. A case-only mismatch (`POST` for `post`) * always wins; otherwise candidates compete within a small edit-distance * budget (1 for short keys, 2 otherwise). An exact match returns * `undefined` — a key that exists needs no suggestion. */ export declare const nearestKey: (target: string, candidates: Iterable) => string | undefined;