/** * 0.x-aware version bumping, shared by the pinned upgrade Op (#549) and the * rolling drift re-baseline (#616). Centralised here so the single source of * truth for the semver rule can't drift between the two callers. */ /** Surface-change severity that drives a bump. */ export type BumpSeverity = "additive" | "breaking" | "none"; /** * Compute a bumped semver from a current version and a surface severity. * * Pre-1.0 (major 0) never auto-promotes to 1.0.0: breaking → minor, additive → * patch. At >= 1.0.0: breaking → major, additive → minor. Returns null for * "none" or a version string that can't be parsed as MAJOR.MINOR.PATCH. */ export declare function bumpForSeverity(current: string, severity: BumpSeverity): string | null; /** * Read a package.json, set its `version`, and write it back — preserving all * other fields, 2-space indent, and a trailing newline. */ export declare function bumpPackageJsonVersion(packageJsonPath: string, newVersion: string): void; //# sourceMappingURL=version-bump.d.ts.map