/** * Commander wiring helpers for declarative CommandSpec inputs. * * Kept out of mount-command-spec.ts so option/argument translation can evolve * independently from the host-owned command lifecycle. */ import { Option } from 'commander'; import type { ArgSpec, OptionSpec } from '@opensip-cli/core'; export { optionKey } from './assemble-opts.js'; /** * Build a Commander {@link Option} from an {@link OptionSpec}, covering every * shape in the first-party flag corpus: boolean / value, negatable `--no-`, * literal `default` and repeatable `arrayDefault`, `choices`, the pure `parse` * argParser, variadic, and `required` (mandatory). * * @throws {Error} When the spec marks a boolean (valueless) option `required` * — only value options can be made mandatory. */ export declare function buildOption(spec: OptionSpec, commandName: string): Option; /** * Format an {@link ArgSpec} into Commander argument-usage syntax: `` * (required), `[name]` (optional), with `...` appended for variadic. */ export declare function formatArgUsage(spec: ArgSpec): string; //# sourceMappingURL=mount-command-spec-wiring.d.ts.map