import type { Command } from 'commander'; import { type CommandIO, type CommandResult } from '../../services/io.js'; import { type StartOption } from '../../start/menu.js'; import { type StartRecommendation } from '../../start/render.js'; export interface StartArgs { pick?: number | undefined; yes?: boolean | undefined; json?: boolean | undefined; isTty: boolean; } export interface StartDeps { /** Spawn an option's runner; resolves to its exit code. */ spawn: (option: StartOption) => Promise; /** Interactive menu pick (TTY). Returns the option, or null to quit. */ prompt?: (initialized: boolean) => Promise; /** Interactive confirm (TTY). Returns true to run. */ confirm?: (option: StartOption) => Promise; /** State probe (defaults to checking .cadence/state.json). */ initialized?: (root: string) => boolean; /** Recommendation probe (defaults to the live repo state). */ recommendation?: (root: string, initialized: boolean) => Promise; } /** The real spawn: cadence binary self-spawn, or npx for host packages. */ export declare function defaultSpawn(option: StartOption): Promise; export declare function runStart(root: string, args: StartArgs, io: CommandIO, deps: StartDeps): Promise; export declare function registerStartCommand(program: Command): void; //# sourceMappingURL=start.d.ts.map