import type { State } from "../../../utils/state.js"; import { type Package } from "../../../utils/packageJson.js"; /** * The packages to publish, each of them carrying the version * `library version --deferred` has determined for it. Nothing is ever * published from a `package.json` version. * * @throws {MissingDeferredVersionError} If a detected package has no saved version. */ export declare function deferredVersionsOf(state: State, detectedPkgs: Package[]): Package[]; /** * Splits the packages into the ones that reached npm and the ones the publish * never got to. A package that threw after npm accepted it counts as published. */ export declare function publishOutcomeOf(state: State, pkgs: Package[], failedPkg?: Package): { published: Package[]; notAttempted: Package[]; }; /** * Put a package back on the version it was on before this release: its new * version is written right before it's published, so one that didn't make it to * npm would be left carrying a version nothing has been released under. * * @param pkg - The package, on the version it has to go back to. */ export declare function revertVersionOf(pkg: Package): Promise; /** * Build every package that is about to be published, in one go: a monorepo * hands the whole list to its build tool, which runs them in parallel while * respecting the dependency graph. */ export declare function buildPkgs(pkgs: Package[]): Promise; /** * Runs the publish pipeline for a single package: makes its changelog and * publishes it on npm. It's expected to be built ({@link buildPkgs}) and to * have its version written on `package.json` already. * * @param options.onPublished - Callback invoked once the package is on npm, so the caller knows what to tag and release. */ export declare function publishPkg(pkg: Package, options: { onPublished: (pkg: Package) => void; }): Promise; export declare function tryPublishOnNpm(pkg: Package, options: { onPublished: (pkg: Package) => void; }): Promise; export declare function addFileToStage(path: any): Promise; export declare function addPkgFileChangesToStage(pkg: any): Promise; export declare function sequentiallyRun(promises: any): Promise; export declare function publishCommitAndTags(pkgs: Package[]): Promise; export declare function push(): Promise; export declare function makeGithubRelease(pkg: Package): Promise; //# sourceMappingURL=helpers.d.ts.map