"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphMoveSubgraphEvent = void 0;
function watchGraphMoveSubgraphEvent(event, graph, callback) {
    const listener = (...[graphId, graphBundle, nextSpecId, nodeIds, nextIdMap, nextPinIdMap, nextMergePinId, nextPlugSpec, nextSubComponentParentMap, nextSubComponentChildrenMap, path,]) => {
        callback({
            type: 'graph',
            event,
            data: {
                graphId,
                graphBundle,
                nodeIds,
                nextSpecId,
                nextIdMap,
                nextPinIdMap,
                nextMergePinId,
                nextPlugSpec,
                nextSubComponentParentMap,
                nextSubComponentChildrenMap,
                nextSubComponentIndexMap: {}, // TODO
                nextUnitPinMergeMap: {},
                path,
            },
        });
    };
    graph.prependListener(event, listener);
    return () => {
        graph.removeListener(event, listener);
    };
}
exports.watchGraphMoveSubgraphEvent = watchGraphMoveSubgraphEvent;
//# sourceMappingURL=watchGraphMoveSubgraphIntoEvent.js.map