import type { Command } from "commander"; interface ArgSpec { name: string; required: boolean; } interface OptionSpec { flags: string; description: string; default?: unknown; } interface CommandSpec { name: string; description: string; args: ArgSpec[]; options: OptionSpec[]; subcommands?: CommandSpec[]; } interface CliSpec { name: string; version: string; description: string; globalOptions: OptionSpec[]; commands: CommandSpec[]; exchanges: string[]; envelope: { success: string; error: string; example: { ok: boolean; data: { equity: string; }; meta: { timestamp: string; }; }; }; errorCodes: Record; tips: string[]; } export declare function getCliSpec(program: Command): CliSpec; export {};