"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Base64 {
    static encode(string) {
        if (typeof btoa === 'undefined') {
            return Buffer.from(string).toString('base64');
        }
        return btoa(string);
    }
    static decode(string) {
        if (typeof atob === 'undefined') {
            return Buffer.from(string, 'base64').toString('binary');
        }
        return atob(string);
    }
}
exports.Base64 = Base64;
