import { Environment, BindingError } from "@contember/binding";
const identityEnvironmentExtension = Environment.createExtension((state) => {
  if (state === void 0) {
    throw new BindingError("Environment does not contain identity state.");
  }
  return {
    identity: state ?? void 0
  };
});
export {
  identityEnvironmentExtension
};
//# sourceMappingURL=IdentityEnvironmentExtension.js.map
