   (let [opts (js->clj opts)]
     (promise (ormap-stage/create-ormap! stage :id (get opts "id") :description (get opts "description")))))
 
-
 (defn ^:export createLWWR [stage opts]
   (let [opts (js->clj opts)]
     (promise (lwwr-stage/create-lwwr! stage :id (get opts "id") :description (get opts "description")))))

            [replikativ.crdt.ormap.stage :as ormap-stage]
            [goog.net.WebSocket]
            [goog.Uri]
            [goog.events]
            [replikativ.crdt.ormap.realize :as ormap-realize]
            [replikativ.crdt.lwwr.realize :as lwwr-realize]

(when ^boolean js/COMPILED
  (set! js/goog.global js/global))

(set! (.-exports js/module) #js {:newMemStore newMemStore
                                 :clientPeer  clientPeer
                                 :createStage createStage
                                 :connect     connect
                                 :LWWR        #js {:create createLWWR
                                                   :stream streamLWWR
                                                   :set    setRegister}
                                 :ORMap       #js {:create    createORMap
                                                   :stream    streamORMap
                                                   :associate associate}
                                 :createUUID  cljs.core/uuid
                                 :toEdn       cljs.core/js->clj
                                 :hashIt      hasch.core/uuid})

(when on-node?
  (nodejs/enable-util-print!)
  (defn ^:export -main [& args]
    (.log js/console "Loading replikativ js code."))
  (set! cljs.core/*main-cli-fn* -main))
