import { Command } from 'commander';
interface CommandEntry {
    path: string;
    description: string;
    leafName: string;
}
/**
 * Recursively collects all commands from the command tree.
 * Includes both leaf commands and command groups (parents with subcommands).
 * Aliases are added as separate entries.
 */
export declare function getAllCommands(cmd: Command, prefix?: string): CommandEntry[];
/**
 * Standard Levenshtein distance between two strings.
 */
export declare function levenshtein(a: string, b: string): number;
/**
 * Sets up cross-level "Did you mean?" suggestions for unknown commands.
 *
 * Disables Commander's built-in same-level suggestions and intercepts
 * "unknown command" errors to search the entire command tree.
 */
export declare function setupUnknownCommandSuggestions(program: Command): void;
export {};
//# sourceMappingURL=did-you-mean.d.ts.map