/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ /** * Toposort an edge list * @param edges - the edge list * @returns the topologically sorted node array */ export declare function toposort(edges: ReadonlyArray<[T, T | undefined]>): T[]; /** * * @param nodes - the nodes array * @param edges - the edges array * @returns the topologically sorted node array */ export declare function array(nodes: ReadonlyArray, edges: ReadonlyArray<[T, T | undefined]>): any[];