import TaskManager from '../TaskManager.js'; /** * Creates a dependency map for all operations. * * Returns a Map of operation ID -> { * dependencies: operation IDs this op waits for * dependents: operation IDs that wait for this op * } * * This allows the task manager to: * - Dynamically trigger downstream ops when upstream completes * - Track dependencies and dependents efficiently during execution * - Use alongside the execution plan to resolve execution flow * * `depends_on` is read in one of two directions. On an op that also sets * `stop_if_dependent_stops` it names the ops that op serves: a server is stopped * once they finish, so it has to be running before they start. Everywhere else * it names what the op waits for. * * The direction matters because a client reaches its server by hostname, and * that name exists only once the server's container does — after the server has * pulled its image and fetched its resources. Starting the client first puts all * of that inside the client's own wait. */ export declare function createDependencyMap(this: TaskManager): Map;