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

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