#!/usr/bin/env node import '../preflight.js'; import '../global-handlers.js'; import { Command } from 'commander'; /** * Build the Commander `program` with every subcommand registered. Exposed * (rather than only constructed inline) so test/cli/help-snapshot.test.ts * can import it and snapshot the help-text output of every subcommand * without needing to spawn a child process. * * The script entry-point at the bottom of this file is gated behind a * `process.argv[1] === fileURLToPath(import.meta.url)` check so importing * this module from a test never accidentally triggers `parseAsync`. */ export declare function buildProgram(): Command;