export type KeyFunc = (x: T) => string; export type DepFunc = (x: T) => string[]; /** * Return a topological sort of all elements of xs, according to the given dependency functions * * Dependencies outside the referenced set are ignored. * * Not a stable sort, but in order to keep the order as stable as possible, we'll sort by key * among elements of equal precedence. */ export declare function topologicalSort(xs: Iterable, keyFn: KeyFunc, depFn: DepFunc): T[];