1 | import * as types from './types';
|
2 | export { DepGraphBuilder };
|
3 | declare class DepGraphBuilder {
|
4 | get rootNodeId(): string;
|
5 | private static _getPkgId;
|
6 | private _pkgs;
|
7 | private _pkgNodes;
|
8 | private _graph;
|
9 | private _pkgManager;
|
10 | private _rootNodeId;
|
11 | private _rootPkgId;
|
12 | constructor(pkgManager: types.PkgManager, rootPkg?: types.PkgInfo);
|
13 | getPkgs(): types.PkgInfo[];
|
14 | addPkgNode(pkgInfo: types.PkgInfo, nodeId: string, nodeInfo?: types.NodeInfo): this;
|
15 | connectDep(parentNodeId: string, depNodeId: string): this;
|
16 | build(): types.DepGraph;
|
17 | }
|