import { select, checkbox } from "@inquirer/prompts"; import type { WizardModule, WizardResult } from "@onenomad/przm-cortex-core"; /** * CLI runner for a WizardModule spec. Imports from @onenomad/przm-cortex-core are * framework-agnostic; all inquirer calls are scoped to this file. The * runner is used by `cortex init`, `cortex add`, and `cortex configure`; * a React form renderer in the dashboard will consume the same spec * via a different runner without touching the module's wizard code. */ export interface RunWizardOptions { /** Pre-filled values used as step defaults — for `cortex configure`. */ currentValues?: Record; /** Pre-filled secrets (from existing .env) so the user can accept as-is. */ currentSecrets?: Record; } /** * Walk a wizard spec, collect answers, validate against the module's Zod * schema, and return the result. Throws if the user aborts (ctrl-c) or if * validation keeps failing — calling code should catch and surface a * short error. */ export declare function runWizard(module: WizardModule, opts?: RunWizardOptions): Promise>; export { select, checkbox }; //# sourceMappingURL=wizard-runner.d.ts.map