import type { TypoSuggestion } from '../config/types.js'; /** * Cross-references reported keys against a pool of existing candidate keys and * suggests the closest match when a key looks like a simple typo of another. * * This powers the "did you mean DATABASE_URL? (found DATABAS_URL)" hints for: * - compare mode: keys missing from the current file vs. the extra keys it has * - scan mode: variables used in code but not defined vs. the keys that are defined * * A candidate only qualifies when it is within {@link MAX_TYPO_DISTANCE} edits and * within {@link MAX_TYPO_RATIO} of the longer key's length, so short unrelated keys * are not matched against each other. Only the single closest candidate is returned * per reported key. * * @param reportedKeys - Keys reported as missing / undefined * @param candidateKeys - Existing keys that a reported key may be a typo of * @returns One suggestion per reported key that has a likely match */ export declare function suggestTypos(reportedKeys: string[], candidateKeys: string[]): TypoSuggestion[]; //# sourceMappingURL=suggestTypos.d.ts.map