import type { Argv } from 'yargs'; /** * Register a subcommand with auto-enriched description. * Replays the builder on a probe yargs instance to discover demandOption fields, * then appends required flag names to the description so parent help shows them. * * Note: enrichment targets the description, not the command string, because yargs * interprets `<...>` in command strings as required positional arguments. */ export declare function registerSubcommand(parentYargs: Argv, usage: string, description: string, builder: (y: Argv) => Argv, handler: (argv: any) => Promise): Argv;