import type { VersioningChangelogStorage, VersioningSettings } from '@pnpm/types'; import { type ReleasePlan, type WorkspaceProject } from './assembleReleasePlan.js'; import type { ChangeIntent } from './intents.js'; /** * Registry storage is the default: no CHANGELOG.md is committed; a release's * section is parked (see {@link writePendingChangelog}) and packed into the * published tarball. `repository` opts back into committed changelogs. */ export declare function changelogStorage(versioning?: VersioningSettings): VersioningChangelogStorage; export interface ApplyReleasePlanOptions { workspaceDir: string; projects: WorkspaceProject[]; /** * All intent files currently in the workspace, used to decide which files * are fully consumed after this run and can be deleted. */ allIntents: ChangeIntent[]; versioning?: VersioningSettings; /** * In `registry` changelog storage, the gate that lets a ledgered release's * intents be garbage-collected: it must resolve `true` only once the * registry has published `${name}@${version}` and that tarball's * CHANGELOG.md already contains `section`. Without it, registry-mode * releases keep their intents (the repository is still their only prose). * Ignored in `repository` storage, where the committed changelog already * holds the prose and the ledger alone gates deletion. */ verifyPublished?: (name: string, version: string, section: string) => Promise; } export interface AppliedRelease { name: string; currentVersion: string; newVersion: string; } export declare function applyReleasePlan(plan: ReleasePlan, opts: ApplyReleasePlanOptions): Promise;