import { type PreferredScope } from "./install-prefs.js"; import { type PromptStreams } from "./prompt.js"; import { type DetectedTarget, type InstallScope, type SkillTarget } from "./skill-roots.js"; export interface SkillPlanOptions { cwd: string; /** From `--targets`; presence alone suppresses the wizard. */ explicitTargets?: SkillTarget[]; /** From `--scope`. */ explicitScope?: PreferredScope; /** From `--prune` / `--no-prune`. */ explicitPrune?: boolean; /** From `--root =`. */ roots?: Partial>; /** From `--yes`: take the detected defaults without asking. */ yes?: boolean; home?: string; env?: NodeJS.ProcessEnv; streams?: PromptStreams; log?: (line: string) => void; } export interface SkillPlan { targets: SkillTarget[]; scopes: InstallScope[]; pruneProject: boolean; /** True when the user backed out; the caller must not write anything. */ cancelled: boolean; detected: DetectedTarget[]; } /** The option surface `install` and `setup` share, as plain values. */ export interface InstallArgvOptions { cwd: string; targets?: string; scope?: string; root: string[]; force: boolean; yes: boolean; prune?: boolean; } /** * Rebuild a run's skill options as an `install` argv, so `setup` can hand off * to the CLI it just installed rather than continuing in its own process — * where the code in memory predates the files on disk. * * Every option must survive the round trip. Dropping `--scope` here would * silently install to a different root than the user asked for, which is the * exact class of failure this handoff exists to prevent. */ export declare function installArgv(options: InstallArgvOptions, pruneCameFromCli: boolean): string[]; export declare function scopesFor(scope: PreferredScope): InstallScope[]; /** * Decide what to install and where. Interactive only when a human is on both * ends of the terminal and has not already answered on the command line; * every other path resolves silently from detection and saved preferences. */ export declare function planSkillInstall(options: SkillPlanOptions): Promise; //# sourceMappingURL=install-wizard.d.ts.map