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