/** * Directory (under the workspace's `.changeset/`) holding the composed * changelog sections of releases whose intents are not yet published. In * `registry` changelog storage no `CHANGELOG.md` is committed, so a release's * section is parked here at `pnpm version -r` time and consumed at publish, * when it is prepended to the previously published tarball's changelog. Each * file is garbage-collected together with the intents it was composed from, * under the same registry-confirmed gate. */ export declare const PENDING_CHANGELOGS_DIR = "changelogs"; export declare function pendingChangelogPath(workspaceDir: string, pkgName: string, version: string): string; export interface PendingChangelog { name: string; version: string; } /** * The `package@version` of every parked section. The release-driven garbage * collector consults this rather than the ledger so it also collects the * sections of dependency-propagated releases, which carry no consumed intents * and therefore have no ledger entry. */ export declare function listPendingChangelogs(workspaceDir: string): Promise; export declare function writePendingChangelog(workspaceDir: string, pkgName: string, version: string, section: string): Promise; export declare function readPendingChangelog(workspaceDir: string, pkgName: string, version: string): Promise; /** Removes a parked section. A missing file is not an error. It may already have been collected. */ export declare function removePendingChangelog(workspaceDir: string, pkgName: string, version: string): Promise;