class Base64 {
    static base64UrlToUint8Array(base64Url) {
        const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
        return Buffer.from(base64, "base64");
    }
    static uint8ArrayToBase64Url(uint8Array) {
        const base64 = Buffer.from(uint8Array).toString("base64");
        return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/[=]/g, "");
    }
}
export default Base64;
//# sourceMappingURL=Base64.js.map