/** Maximum edit distance for suggesting "Did you mean?" in error messages */ export declare const SUGGESTION_THRESHOLD = 3; /** * Finds the candidate with the smallest Levenshtein distance to the input. * Used to enhance "not found" errors with "Did you mean 'X'?" when distance <= SUGGESTION_THRESHOLD. * * @param input - The string that was not found * @param candidates - Array of valid candidates to match against * @param getLabel - Function to extract the label string from each candidate * @returns The best match and its distance, or undefined if candidates is empty * @internal */ export declare function findBestMatch(input: string, candidates: readonly T[], getLabel: (c: T) => string): { best: T; distance: number; } | undefined;