type StepLike = { id: string; depends?: string[]; }; /** * Topological sort of steps by their depends array. * Steps with no dependencies come first. Steps that depend on others come after. */ export declare function topologicalSort(steps: T[]): T[][]; /** * Execute levels sequentially, but steps within a level in parallel. */ export declare function executeLevels(levels: T[][], runStep: (step: T) => Promise, onLevelStart?: (level: number) => void): Promise; export {}; //# sourceMappingURL=dag.d.ts.map