export declare function formatUnknownCommandError(command: string, knownSubcommands: readonly string[]): string; /** * Returns the candidate with the smallest edit distance to `value`, or * `undefined` when the nearest candidate's distance is strictly greater than * `maxDistance`. A candidate at exactly `maxDistance` is accepted. Callers * supply `maxDistance` so different suggestion surfaces can tune how forgiving * their typo matching is. Internal to `src/cli/`; not part of the public API. */ export declare function findNearestCandidate(value: string, candidates: readonly string[], maxDistance: number): string | undefined;