import type { Argv, CommandModule as YargsCommandModule } from 'yargs'; export type Builder = (yargs: Argv) => Argv; export type Handler> = (args: Awaited['argv']>) => void | Promise; export interface CommandModule extends Omit, 'handler'> { builder: Builder; handler: Handler>; } /** * Helper function to define a Yargs CommandModule with proper typing and not sacrifice inference. */ export declare function makeCommandModule(module: CommandModule): CommandModule;