import type { Mode } from '@amritk/validation'; import type { CliConfig } from './cli-config.js'; /** * Turns the flags a run was given into the list of entry points `generate()` * should emit. * * The CLI predates the mode list: its flags grew one at a time, each one meaning * "also emit this function", so the mapping is additive rather than a choice. * Keeping it in one place means the four generation flows cannot drift on what * `--strict --validators --repair` is supposed to produce. * * `--types-only` is the one run with nothing to execute, so it stops at `types` * — asking for a parser there would emit runtime code the flag exists to avoid. * `--validators-only` is its mirror at the other end: everything that judges a * document, and nothing that builds one. Between them, every run carries a * parser, because emitting one is what the CLI does when you do not tell it * otherwise. */ export declare const resolveModes: (config: Partial) => Mode[];