import type { Package } from "./workspace/workspace.js"; /** * `packages`, each one after everything it depends on. A release both builds * and publishes in this order, for the same reason in both cases: a package * cannot be built against a sibling whose `dist` is not there yet, and cannot * be installed alongside a sibling the registry has never heard of. Ordering * this way is what makes a release that dies partway leave a smaller release * rather than a broken one. * * Everything able to go at once goes together in name order, so the same * workspace always gives the same sequence and a failed release resumes into * the one it left. Packages that depend on nothing stay near the front, where * they read as the foundation they are. */ export declare function order(packages: readonly Package[]): Package[];