import { PGraph } from 'p-graph'; import type { PackageInfo, PackageInfos } from '../types/PackageInfo'; /** * Get a PGraph of `affectedPackages` which will run a function in dependency topological order. * Note that this version only considers dependencies listed directly in the graph (see comment * on `getPackageGraphLayers` for why this might matter). * @param affectedPackages Packages to include * @param packageInfos All packages in the repo * @param runHook Function to run for each package * @returns The graph ready to run */ export declare function getPackageGraph(affectedPackages: string[], packageInfos: PackageInfos, runHook: (packageInfo: PackageInfo) => void | Promise): PGraph; /** * Get the graph of non-dev dependencies within the repo. * Dev dependencies can be omitted since they don't impact publishing or installation. * * @returns Each element is a tuple of `[dependency, dependent]` where `dependent` depends on `dependency`. * These are the edges of the dependency graph. */ export declare function _getPackageDependencyGraph(packages: string[], packageInfos: PackageInfos): [string, string][]; /** * Call {@link getPackageDependencies} with consistent options: ignore dev deps, * include deps of all other types if included in `packageSet`. */ export declare function getPackageDependenciesWrapper(packageInfo: PackageInfos[string], packageSet: Set): string[]; //# sourceMappingURL=getPackageGraph.d.ts.map