import type { ArgParser, ParsingInto } from "./argparser"; import { type Example } from "./helpFormatter"; import type { Aliased, Descriptive, Named, ProvidesHelp, Versioned } from "./helpdoc"; import type { Runner } from "./runner"; type Output & Runner>> = { [key in keyof Commands]: { command: key; args: ParsingInto; }; }[keyof Commands]; type RunnerOutput & ArgParser>> = { [key in keyof Commands]: { command: key; value: Commands[key] extends Runner ? X : never; }; }[keyof Commands]; /** * Combine multiple `command`s into one */ export declare function subcommands & Runner & Partial>>(config: { name: string; version?: string; cmds: Commands; description?: string; /** Examples to show in help output */ examples?: Example[]; }): ArgParser> & Named & Partial & Runner, RunnerOutput>; export {};