import type { ArgParser, ParsingInto } from "./argparser"; import { type Example } from "./helpFormatter"; import type { Aliased, Descriptive, Named, PrintHelp, ProvidesHelp, Versioned } from "./helpdoc"; import type { Runner } from "./runner"; type ArgTypes = Record & Partial>; type HandlerFunc = (args: Output) => any; type CommandConfig> = { args: Arguments; version?: string; name: string; description?: string; handler: Handler; aliases?: string[]; /** Examples to show in help output */ examples?: Example[]; }; type Output = { [key in keyof Args]: ParsingInto; }; /** * A command line utility. * * A combination of multiple flags, options and arguments * with a common name and a handler that expects them as input. */ export declare function command>(config: CommandConfig): ArgParser> & PrintHelp & ProvidesHelp & Named & Runner, ReturnType> & Partial; export {};