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