import { Command, Option } from "commander"; import { AddCommands, Command as CommandType, Option as OptionType } from "../types.js"; import { Logger } from "../logger/types.js"; export type CommandModule = { addCommands?: AddCommands; default?: CommandType; }; export declare const createCommand: (name?: string) => Command; export declare function getAbsoluteCommandName(command: Command): string; export declare const getShortFlagForLongName: (command: Command, option: OptionType) => string; export declare const isOptionAlreadyRegistered: ({ longName }: OptionType, command: Command) => boolean; export declare const registerLongName: (command: Command, option: OptionType) => string; export declare const buildOption: (command: Command, option: OptionType) => Promise