/**
 * Top-level command spellcheck (RUSH-2329).
 *
 * Candidates are plain strings from KNOWN_TOP_LEVEL_COMMANDS — never the live
 * commander registry — so an unknown / typo'd invocation does not pay for
 * registerAllEagerCommands (~250-330ms of dynamic import + module eval).
 */
/** Calculate the Levenshtein edit distance between two strings. */
export declare function levenshtein(a: string, b: string): number;
/**
 * Closest top-level command name by Levenshtein distance.
 * Iterates candidates in first-seen order so ties break the same way as the
 * historical registerAllEagerCommands registration order (RUSH-2329).
 */
export declare function closestTopLevelCommand(unknown: string, candidates: Iterable<string>): {
    closest: string | null;
    minDist: number;
};
