/** A request that short-circuits generation and just prints something. */ export type MetaRequest = 'version' | 'help'; /** * Detects `mjst version` / `mjst help` and the `--version` / `-v` / `--help` / * `-h` flags in raw argv. * * The subtlety is *where* the token sits. Scanning the whole argv with * `includes('-v')` meant that any flag whose **value** happened to be `-v` — say * `--type-suffix -v` — printed the version and exited 0 without generating * anything, which CI reads as a successful build. So a token in the value * position of a value-taking flag is skipped: it belongs to that flag. * * @returns What the args ask for, or `undefined` for a normal generation run. */ export declare const parseMetaRequest: (args: readonly string[]) => MetaRequest | undefined;