import { Command } from "commander"; import { type CheckResult } from "./check.mjs"; import type { LimitedUserConfig } from "./cli.mjs"; import { type GenerateRuntimeOptions } from "./generate.mjs"; export type CliIO = { stdout: (text: string) => void; stderr: (text: string) => void; }; export type CliDependencies = { generate: (options: LimitedUserConfig, version: string, runtime?: GenerateRuntimeOptions) => Promise; check: (options: LimitedUserConfig, version: string) => Promise; }; export declare function buildProgram(version: string, io: CliIO, { json }: { json: boolean; }): Command; /** * Run the CLI and resolve with the process exit code: * 0 = success / up to date, 1 = `--check` found drift, 2 = error. */ export declare function runCli(argv: readonly string[], version: string, io?: CliIO, dependencies?: CliDependencies): Promise;