import type { VersioningSettings } from '@pnpm/types'; import { type ResolvedEpic } from './epics.js'; import type { ChangeIntent, IntentBumpType } from './intents.js'; import { type Participant } from './participants.js'; import { type ProjectRefIndex, type WorkspaceProject } from './projectRefs.js'; export interface ResolveWorkspaceVersioningOptions { workspaceDir: string; projects: WorkspaceProject[]; versioning?: VersioningSettings; } /** The workspace's `versioning` configuration, resolved against its projects and validated. */ export interface WorkspaceVersioning { refs: ProjectRefIndex; participants: Map; lanesByDir: Map; fixedGroups: string[][]; epics: ResolvedEpic[]; } export declare function resolveWorkspaceVersioning(opts: ResolveWorkspaceVersioningOptions): WorkspaceVersioning; /** * Validates `versioning.lanes` against `versioning.fixed` so a lane edit can * reject a split fixed group before writing `pnpm-workspace.yaml`. */ export declare function validateVersioningLanes(opts: ResolveWorkspaceVersioningOptions): void; /** * Resolves every intent's package references to participant directories, * validating along the way: unknown references and names matching several * projects are hard errors, and a release can only be demanded from a * participant. Otherwise the intent could never be consumed and the file * would linger forever. A `none` decline is fine for any workspace package. */ export declare function resolveIntents(intents: ChangeIntent[], refs: ProjectRefIndex, participants: Map): Map>;