/** * Boolean flags DECLARED AS DATA — feature boolean-flags-declared (backlog 247ddcfa). * * Before this file, `parseArgs` had no concept of a boolean flag: ANY `--flag` greedily consumed * the next token unless it began with `--`. MEASURED 2026-08-22 on 0.7.0: `dz sync --dry-run .` * turned the safety flag into the option `dry-run=.` — `flags.has('dry-run')` was FALSE and the * run WROTE, its only trace a missing label. The same class swallowed positionals * (`dz recall --no-semantic "torque"` ate the query) across ~72 commands. * * GENERATED from a census of `cli.ts` reads — `test/boolean-flags.test.ts` re-derives the census * on every run and fails on ANY divergence, in BOTH directions: a name here that gains a valued * read, or a new flags.has-only name missing from here, each forces a conscious decision. * * Two names are declared beyond the mechanical census, both documented: * - `json` — its one valued read (cli.ts, the `--json ` recovery in the mcp-scan family) IS * the hand-patch for this very defect; with the flag declared boolean the recovery goes * harmlessly dead and `--json ` parses as flag + positional, which that code also accepts. * - `force` — valued ONLY under `dz guard` (`--force `, the audited override); boolean in * every other command. Encoded via {@link VALUED_FORCE_COMMANDS}. */ export declare const BOOLEAN_CLI_FLAGS: ReadonlySet; /** Commands where `--force` takes a VALUE (`--force `, logged) and must stay greedy. */ export declare const VALUED_FORCE_COMMANDS: readonly string[]; /** Is `--` a boolean flag for this command — i.e. it must never swallow the next token? */ export declare function isBooleanFlag(name: string, command: string): boolean; //# sourceMappingURL=boolean-flags.d.ts.map