"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphPinMergeEvent = watchGraphPinMergeEvent;
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);
    };
}
//# sourceMappingURL=watchGraphPinMergeEvent.js.map