import type { VersioningSettings } from '@pnpm/types'; import type { WorkspaceProject } from './projectRefs.js'; export interface VersioningInvariantViolation { code: 'VERSIONING_EPIC_OUT_OF_BAND' | 'VERSIONING_FIXED_GROUP_MISMATCH'; message: string; } export interface CheckVersioningInvariantsOptions { workspaceDir: string; projects: WorkspaceProject[]; versioning?: VersioningSettings; } /** * Validates that the committed versions already satisfy the invariants the * configuration declares: every epic member's major sits inside its lead's * band, and every fixed group shares one version. This is the static * counterpart to the release-time enforcement in `assembleReleasePlan`, which * only checks packages a plan actually releases, so a committed manifest that * drifted out of band, or a fixed group that fell out of lockstep, would * otherwise go unnoticed until a release that happens to touch it. Returns * every violation so a caller can report them all at once; malformed * configuration (unknown lead, epic overlap, a group straddling an epic) still * throws, exactly as plan assembly would. */ export declare function checkVersioningInvariants(opts: CheckVersioningInvariantsOptions): VersioningInvariantViolation[];