/*! OpenPGP.js v6.0.0-alpha.0 - 2023-12-12 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
const globalThis = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

class BigInteger {
    static setImplementation(Implementation, replace = false) {
        if (BigInteger.Implementation && !replace) {
            throw new Error('Implementation already set');
        }
        BigInteger.Implementation = Implementation;
    }
    static new(n) {
        return new BigInteger.Implementation(n);
    }
}

export { BigInteger as B };
