import { WorkspacePackage } from '../package-json/collect-package-jsons.js'; /** sort a workspace by the publish order (i.e. dependencies first, then dependants) */ export declare function sortWorkspaceByPublishOrder(packages: WorkspacePackage[]): WorkspacePackage[]; /** * determine the publish order of a workspace * * publish order is determined by the dependencies of the packages, * so that for each package, all its dependencies are to be published before it * * @throws if there's a cycle in the dependencies */ export declare function determinePublishOrder(dependencies: Record): string[];