 
 (def ^:private bpt-magic 0x78CA8C91)
 
-(declare read-structure)
+(declare read-structure read-all-headers)
 
 (defrecord FixedWidthHeader [magic version zoom-levels chromosome-tree-offset
                              full-data-offset full-index-offset


(defrecord BbiChromInfo [name id size])

(defrecord BIGWIGReader [^RandomAccessFile reader ^URL url]
  Closeable
  (close [this]
    (.close ^Closeable (.reader this)))

(defn- read-all-headers
  "Returns the all headers of bigWig format."
  [^RandomAccessFile r]
  (.seek r 0)
  (let [fixed-width-header (read-fixed-width-header r)
        zoom-headers (read-zoom-headers r fixed-width-header)
        total-summary (read-total-summary r fixed-width-header)
