"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
0 && (module.exports = {
    staticGenerationAsyncStorage: null,
    getExpectedStaticGenerationStore: null
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    staticGenerationAsyncStorage: function() {
        return staticGenerationAsyncStorage;
    },
    getExpectedStaticGenerationStore: function() {
        return getExpectedStaticGenerationStore;
    }
});
const _asynclocalstorage = require("./async-local-storage");
const staticGenerationAsyncStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();
function getExpectedStaticGenerationStore(callingExpression) {
    const store = staticGenerationAsyncStorage.getStore();
    if (!store) {
        throw new Error("Invariant: `" + callingExpression + "` expects to have staticGenerationAsyncStorage, 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=static-generation-async-storage.external.js.map