"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const pako = __importStar(require("pako"));
const base64_1 = require("./base64");
class PakoZlib {
    inflate(message) {
        return pako.inflate(base64_1.Base64.decode(message), { to: 'string' });
    }
    deflate(message) {
        return base64_1.Base64.encode(pako.deflate(message));
    }
}
exports.PakoZlib = PakoZlib;
