"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphPinMergeEvent = void 0;
function watchGraphPinMergeEvent(event, graph, callback) {
    const listener = (mergeId, unitId, type, pinId, path) => {
        callback({
            type: 'graph',
            event,
            data: {
                mergeId,
                unitId,
                type,
                pinId,
                path,
            },
        });
    };
    graph.prependListener(event, listener);
    return () => {
        graph.removeListener(event, listener);
    };
}
exports.watchGraphPinMergeEvent = watchGraphPinMergeEvent;
//# sourceMappingURL=watchGraphPinMergeEvent.js.map