/** * Levenshtein distance between two strings. Iterative DP, O(|a|ยท|b|) time * and O(|b|) space. Used for catching close-match typos in user-provided * arguments (e.g., --account emails) without pulling in a dependency. */ export declare function editDistance(a: string, b: string): number; /** * Find the closest match in `candidates` to `value` within an edit-distance * threshold. Returns undefined if `value` is an exact match (no typo) or * no candidate is within the threshold. Length-difference is also bounded * because edit-distance alone can falsely match short strings ("a" vs "b" * has distance 1 but isn't a meaningful typo signal). */ export declare function findLikelyTypo(value: string, candidates: readonly string[], maxDistance?: number): string | undefined;