/** * Pinned version of the upstream skill. modern-web-guidance is pre-1.0 * (last surveyed: 2026-05-26), so an unpinned `@latest` would risk silent * API drift between scaffolds. A scheduled workflow in * `.github/workflows/bump-modern-web-guidance.yml` opens a PR when a newer * version appears upstream; merge gates on manual review of the changelog. * * Once upstream hits 1.0, switch this to a semver range like "^1.0.0" and * retire the bump workflow. */ export declare const MODERN_WEB_GUIDANCE_VERSION = "0.0.184"; /** * Generous upper bound. modern-web-guidance is ~36 MB; on a typical * connection the install finishes in 10–20s. 30s gives slow networks room * without making the customer wait forever on a hung registry call. */ export declare const SKILL_INSTALL_TIMEOUT_MS = 30000; export type InstallSkillOpts = { /** Skip the prompt entirely (set by --skip-skills). */ skip?: boolean; /** Bypass the prompt and install unconditionally (set by --yes). */ assumeYes?: boolean; }; export type InstallSkillResult = { status: "skipped"; reason: "flag" | "declined" | "cancelled"; } | { status: "installed"; version: string; } | { status: "failed"; reason: "timeout" | "error"; error?: Error; }; /** * Side-effecting npx install. Separated from the prompt flow so the test * suite can stub it directly. Never throws; always returns a result struct. */ export declare function tryInstallSkill(targetDir: string): InstallSkillResult; /** * Prompt + install. Best-effort; never blocks scaffold completion. */ export declare function installModernWebGuidance(targetDir: string, opts?: InstallSkillOpts): Promise;