import { materializeChangedCells, materializeEnginePatches, } from '../../patches/materialize-changed-cells.js';
export function createEngineChangeSetEmitterService(args) {
    return {
        captureChangedCells(changedCellIndices) {
            return materializeChangedCells(args.state, changedCellIndices);
        },
        captureChangedPatches(changedCellIndices, request = {}) {
            return materializeEnginePatches(args.state, {
                changedCellIndices,
                ...request,
            });
        },
    };
}
//# sourceMappingURL=change-set-emitter-service.js.map