"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
0 && (module.exports = {
    requestAsyncStorage: null,
    getExpectedRequestStore: null
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    requestAsyncStorage: function() {
        return requestAsyncStorage;
    },
    getExpectedRequestStore: function() {
        return getExpectedRequestStore;
    }
});
const _asynclocalstorage = require("./async-local-storage");
const requestAsyncStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();
function getExpectedRequestStore(callingExpression) {
    const store = requestAsyncStorage.getStore();
    if (!store) {
        throw new Error("Invariant: `" + callingExpression + "` expects to have requestAsyncStorage, none available.");
    }
    return store;
}

if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
  Object.defineProperty(exports.default, '__esModule', { value: true });
  Object.assign(exports.default, exports);
  module.exports = exports.default;
}

//# sourceMappingURL=request-async-storage.external.js.map