/** * npm-global upgrade strategy. * * Without `--yes`: prints the exact `npm i -g …` command and exits without * mutating anything. With `--yes`: runs the command directly. */ import type { UpgradeResult } from "./apply-binary.js"; import { type ReleaseInfo } from "./check.js"; export interface RunCommandResult { exitCode: number; stdout: string; stderr: string; } export interface UpgradeNpmOptions { currentVersion: string; /** Explicit tag like "v0.34.0" or "0.34.0". Defaults to the getLatest result. */ version?: string; /** `--check`: report only, no action. */ check?: boolean; /** `--yes`: run npm instead of printing the command. */ yes?: boolean; /** Injection points. */ getLatest?: (options?: { force?: boolean; }) => Promise; runCommand?: (command: string, args: string[]) => Promise; } export type { UpgradeResult }; export declare function defaultRunCommand(command: string, args: string[]): Promise; export declare function upgradeNpmGlobal(options: UpgradeNpmOptions): Promise; //# sourceMappingURL=apply-npm.d.ts.map