/** The parsed result of CLI arguments. */ export type CliAction = { action: 'help'; } | { action: 'version'; } | { action: 'run'; configFile?: string; cwd: string; /** Overrides config input_openapi when provided via --input */ inputOverride?: string; /** Overrides config output when provided via --output */ outputOverride?: string; watch: boolean; /** * When true, run in read-only check mode: no files are written, any drift * is treated as an error, and the process exits non-zero on drift. * Incompatible with --watch. */ check: boolean; /** * When true, overwrite the input_schema file with a fresh bootstrap from the * spec (the re-bootstrap remedy that drift messages point to). Destructive: * any customizations in the schema file are replaced. Incompatible with --check * (read-only) and --watch (one-shot). */ resetSchema: boolean; /** * When true, regenerate output in memory and compare it against committed files on * disk. Exits non-zero when any file is stale, missing, or extra. Writes nothing. * Incompatible with --watch. */ checkDrift: boolean; } | { action: 'error'; message: string; }; /** * Parse raw process.argv into a structured action. * * Pure function: no I/O, no process.exit. Testable in isolation. * * @param argv process.argv (first two entries are node + script path) * @param cwd the working directory to resolve paths against */ export declare function parseCliArgs(argv: string[], cwd: string): CliAction; //# sourceMappingURL=cli-args.d.ts.map