Return type of useNavigationGuard.
Call this when the user cancels and wants to stay.
Call this when the user confirms they want to leave.
Whether the confirmation dialog should be shown.
Return type of useNavigationGuard.