/** * Usage text printed for `--help`/`-h` and when the CLI is invoked with no * arguments. Kept as a hand-written constant because the config schema that * documents these flags (config.schema.json) is not shipped in the published * package; the help-text test cross-checks that every flag is listed. */ export declare const HELP_TEXT = "mjst \u2014 generate TypeScript types, validators and parsers from JSON Schemas\n\nUsage:\n mjst --schema --out-dir [options]\n mjst --schema-dir --out-dir [options]\n mjst --schema --out-file --types-only [options]\n\nSubcommands (each with its own flags and --help):\n mjst lint Lint JSON/YAML documents against a ruleset\n mjst compile-api --out Compile @amritk/api route contracts into a fetch-handler module\n mjst markdown --out-dir Generate markdown documentation from a JSON Schema\n\nInput:\n --schema Schema to process: a JSON Schema file, or a module when --input is set\n --schema-dir Directory of JSON Schemas, processed recursively (instead of --schema)\n --input Schema source format: json (default), typebox, zod, valibot, effect, avro,\n or asyncapi (an AsyncAPI 2.x/3.0 document, JSON or YAML)\n --export Which export of the schema module to use when --input names a module format\n\nOutput:\n --out-dir Output directory for the generated files\n --out-file Single-file output instead of a directory (requires --types-only)\n --types-only Generate type definitions only, without parser functions\n --validators Also emit validateX/isX validators beside the parsers, over one\n shared declaration of each generated type\n --validators-only Emit the validator half and no parser: the type, isX, validateX and\n whichever of checkX/coerceX/repairX were asked for (implies\n --validators; the mirror of --types-only)\n --check Also emit checkX, the same result as validateX but stopped at the\n first violation (requires --validators)\n --coerce Also emit coerceX, which coerces scalars the way Ajv's coerceTypes\n does and then validates (requires --validators)\n --repair Also emit repairX, which coerces, validates, then repairs each\n rejected position to a schema-supplied value and reports the\n errors it repaired (implies --coerce; requires --validators)\n --branch-errors Explain a failing anyOf/oneOf with the errors of the branch it\n meant (requires --validators; costs a little on unions)\n --examples Also emit fast-check arbitraries + example values under examples/\n --message-contracts Also emit @amritk/api channel contracts under contracts/ (--input asyncapi only)\n --discriminator

Property naming which message a frame is, for --message-contracts (default: type)\n --build Compile the generated files to .js/.d.ts (implies --import-ext js)\n --force Deprecated; ignored (generated files always overwrite)\n --import-ext Extension on generated relative imports: ts (default) or js\n --helpers Runtime helpers: package or embedded (default: auto-detect from package.json)\n --root-type Root type name for a single --schema run (default: schema title or filename)\n --type-suffix Suffix appended to every $ref-derived type name\n --banner [text] Prepend a header comment to every generated file (text made of\n // lines is emitted as written, e.g. \"// @ts-nocheck\")\n --readonly Emit deeply readonly type definitions\n\nValidation:\n --strict Throw on type/shape mismatches instead of coercing to defaults\n --strip-unknown Silently drop undeclared input keys at every nesting level\n --case-insensitive Normalize mis-cased enum/const strings to their exact casing\n --log-warnings console.warn on input keys not declared in the schema\n --unknown-keys How closed objects are proven free of undeclared keys:\n count-keys (default, fastest on Bun) or count-enumerable (fastest on Node)\n --formats String formats the generated validators enforce: \"all\", or a\n comma-separated list (e.g. uuid,date-time,email). Off by default,\n which leaves \"format\" an annotation as JSON Schema reads it.\n\nReference resolution:\n --resolve-remote Fetch http(s) $refs while resolving cross-file/remote refs (off by default)\n --allowed-hosts Restrict remote $ref fetches to these hosts (comma-separated; implies --resolve-remote)\n --allow-private-hosts Permit remote $refs to private/loopback hosts (SSRF guard, off by default)\n --allowed-roots Extra directories a local $ref may resolve into, on top of the schema's own\n (comma-separated; relative to the current directory)\n\nMisc:\n --config JSON config file with the same keys; CLI flags take precedence\n --version, -v Print the CLI version\n --help, -h Print this help\n\nDocs: https://github.com/amritk/mjst/tree/main/packages/cli#readme\n";