1 | import * as types from '../core/types';
|
2 | export { depTreeToGraph, graphToDepTree, DepTree };
|
3 | interface DepTreeDep {
|
4 | name?: string;
|
5 | version?: string;
|
6 | versionProvenance?: types.VersionProvenance;
|
7 | dependencies?: {
|
8 | [depName: string]: DepTreeDep;
|
9 | };
|
10 | labels?: {
|
11 | [key: string]: string | undefined;
|
12 | scope?: 'dev' | 'prod';
|
13 | pruned?: 'cyclic' | 'true';
|
14 | };
|
15 | purl?: string;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | interface DepTree extends DepTreeDep {
|
22 | type?: string;
|
23 | packageFormatVersion?: string;
|
24 | targetOS?: {
|
25 | name: string;
|
26 | version: string;
|
27 | };
|
28 | }
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | declare function depTreeToGraph(depTree: DepTree, pkgManagerName: string): Promise<types.DepGraph>;
|
36 | export interface GraphToTreeOptions {
|
37 | deduplicateWithinTopLevelDeps: boolean;
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | declare function graphToDepTree(depGraphInterface: types.DepGraph, pkgType: string, opts?: GraphToTreeOptions): Promise<DepTree>;
|