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