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