     
     
     ///
-    /// Methods close current module.
-    ///
-    /// - parameter animated: Transition animate state.
-    ///
-    func closeModule(animated: Bool)
-    
-    
-    ///
-    /// Methods close all modules in Navigation Controller stack.
-    ///
-    /// - parameter animated: Transition animate state.
-    ///
-    func closeModulesInStack(animated: Bool)
+    /// Methods close current module(s).
+    ///
+    /// - no parameter.
+    ///
+    func close() -> CloseTransitionPromise
 }
 
 

					print("[LightRoute]: Transition error, navigation controller was nil.")
					return
				}
				
				switch navCase {
				case .pop:
					navController.popToViewController(destination, animated: animated)
				case .present:
					navController.present(destination, animated: animated, completion: nil)
				case .push:
					navController.pushViewController(destination, animated: animated)
				}
				
			case .default:
				root.present(destination, animated: animated, completion: nil)
			}

			}
		}
	}
    
    
    func close() -> CloseTransitionPromise {
        let promise = CloseTransitionPromise(root: self)
        
        // Default close transition action.
        promise.postLintAction {
            if let navController = self.navigationController {
                navController.popViewController(animated: true)
            } else {
                self.dismiss(animated: true, completion: nil)
            }
        }
        
        return promise
    }
}

