import type { ReleaseBumpType } from './intents.js'; export declare const BUMP_ORDER: Record; export declare function maxBumpType(types: Array): ReleaseBumpType | null; export interface NewVersionOptions { laneTag?: string; /** * The highest bump accumulated across the package's lane (the * planned bump joined with the bumps of intents consumed by earlier * prereleases), which keeps the stable target stable across `-tag.N` runs. */ cumulativeBump: ReleaseBumpType; /** First release: publish `current` verbatim. A stable seed on a lane debuts at its first prerelease. See `unpublishedDirs`. */ firstRelease: boolean; } export declare function computeNewVersion(current: string, bumpType: ReleaseBumpType, opts: NewVersionOptions): string; /** * The stable version a release of `current` by `bumpType` builds toward: the * plain increment of a stable version, or the escalated stable part of a * prerelease. */ export declare function stableTarget(current: string, bumpType: ReleaseBumpType): string; export declare function stablePart(version: string): string; export declare function nextPrereleaseNumber(current: string, target: string, laneTag: string): number; /** * The range that pnpm materializes for a workspace: spec at pack time, given * the dependency's version at the dependent's previous release. Dependent * propagation republishes the dependent whenever the dependency's new version * falls outside this range. */ export declare function materializeWorkspaceRange(spec: string, depCurrentVersion: string): string | null; export declare function updatedWorkspaceSpec(alias: string, spec: string, updates: ReadonlyMap): string;