import { AsyncLocalStorage } from "async_hooks";
const signupContextStorage = new AsyncLocalStorage();
function getSignupContext() {
  return signupContextStorage.getStore();
}
function shouldSkipTeamCreation() {
  const context = getSignupContext();
  return (context == null ? void 0 : context.skipTeamCreation) === true;
}
async function withSignupContext(context, fn) {
  return signupContextStorage.run(context, fn);
}
export {
  getSignupContext,
  shouldSkipTeamCreation,
  signupContextStorage,
  withSignupContext
};
