import { createAsyncLocalStorage } from "./async-local-storage";
export const staticGenerationAsyncStorage = createAsyncLocalStorage();
export function getExpectedStaticGenerationStore(callingExpression) {
    const store = staticGenerationAsyncStorage.getStore();
    if (!store) {
        throw new Error("Invariant: `" + callingExpression + "` expects to have staticGenerationAsyncStorage, none available.");
    }
    return store;
}

//# sourceMappingURL=static-generation-async-storage.external.js.map