/** * Implementation of a dependency graph. */ export declare class DependencyGraph { private _list; private _dependOn; private _requiredBy; /** * Creates a new instance of a dependency graph. */ constructor(); /** * Adds an element to the graph. * @param element - The element to add to the graph. */ addElement(element: T): void; /** * Adds a dependency between two elements. * @param element - The element that depends on another element. * @param dependency - The element that is required by the element passed as the first parameter. */ addDependency(element: T, dependency: T): void; /** * Walks through the graph and calls the callback for each element. * The elements that depend on other elements will be traversed after the elements they depend on. * Note: the graph will be modified during the walk, so don't call walk twice on the same graph! * @param callback - The callback to call for each element. */ walk(callback: (element: T) => void): void; } //# sourceMappingURL=dependencyGraph.d.ts.map