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