/** The flags and positional the `compile-api` subcommand understands. */ export type CompileApiArgs = { /** Path to the module exporting the route contracts (the sole positional). */ routesModule?: string; /** Output file for the generated module (`--out`). */ out?: string; /** Import specifier override for the routes module (`--routes-import`). */ routesImport?: string; /** Path to a JSON file spread into the compile options (`--options`). */ optionsFile?: string; /** OpenAPI document path override (`--open-api-path`). */ openApiPath?: string; /** Request body size cap override (`--max-body-bytes`). */ maxBodyBytes?: number; /** True when `--help`/`-h` was passed. */ help?: boolean; }; /** * Parses the `compile-api` argv into a typed args object. Mirrors the main * CLI parser's conventions: kebab-case and camelCase flag spellings, both * `--flag value` and `--flag=value`, and a loud error on unknown flags so a * typo cannot silently drop an option. Throws on usage errors; the caller * turns that into the exit-code-2 path. */ export declare const parseCompileApiArgs: (argv: readonly string[]) => CompileApiArgs;