1 | import { NodeDefinition, NodeDependencyTypes } from '@chix/common';
|
2 | import { Dependencies, DependencyTypes } from '../types';
|
3 | export declare class DependencyManager {
|
4 | private dependencies;
|
5 | parseDependencies(nodeDefinition: NodeDefinition): void;
|
6 | setDependencies(dependencies: Dependencies): void;
|
7 | /**
|
8 | *
|
9 | * Get dependencies for the type given.
|
10 | *
|
11 | * If no type is given will return all dependencies.
|
12 | *
|
13 | * @param {string} type
|
14 | * @public
|
15 | */
|
16 | getDependencies(type?: DependencyTypes): Dependencies | NodeDependencyTypes;
|
17 | /**
|
18 | *
|
19 | * Checks whether there are any dependencies.
|
20 | *
|
21 | * If no type is given it will tell whether there are *any* dependencies
|
22 | *
|
23 | * @param {string} type
|
24 | * @public
|
25 | **/
|
26 | hasDependencies(type?: DependencyTypes): boolean;
|
27 | }
|