/**
 * Zlib exports.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */

import zlibAndGzip from "zlibjs/bin/zlib_and_gzip.min";

const Zlib = zlibAndGzip.Zlib;

export const COMPRESSION_TYPE = ["Dynamic Huffman Coding", "Fixed Huffman Coding", "None (Store)"];
export const INFLATE_BUFFER_TYPE = ["Adaptive", "Block"];
export const ZLIB_COMPRESSION_TYPE_LOOKUP = {
    "Fixed Huffman Coding":   Zlib.Deflate.CompressionType.FIXED,
    "Dynamic Huffman Coding": Zlib.Deflate.CompressionType.DYNAMIC,
    "None (Store)":           Zlib.Deflate.CompressionType.NONE,
};
