import type { Argv, Options } from "yargs"; export type CliCommandOptions = Required<{ [key in keyof OwnArgs]: Options; }>; export interface CliCommand, ParentArgs = Record, R = any> { command: string; describe: string; examples?: { command: string; description: string; }[]; options?: CliCommandOptions; subcommands?: CliCommand[]; handler?: (args: OwnArgs & ParentArgs) => Promise; } /** * Register a CliCommand type to yargs. Recursively registers subcommands too. * @param yargs * @param cliCommand */ export declare function registerCommandToYargs(yargs: Argv, cliCommand: CliCommand): void; //# sourceMappingURL=util.d.ts.map