The players involved in the conflict in Afghanistan have all concluded that neither side can achieve a military victory and that it will end in some other way, probably through a negotiated solution. Since each of them has different goals, this end game is likely to be both confusing and complicated. What is likely to make it even more so is that within each of the parties involved there are factions and interests that have differing ideas on the desired end state and, therefore, the appropriate tactic to achieve it.
With so many players and sub-players, and so many competing agendas, it would be foolhardy to try and predict how this end game will play out (although it is possible to foresee the near-term moves and their probable fate, as well as some of the major forks likely to appear in the road ahead). The best approach is to look at the parties involved, their goals, and how they are likely to try and achieve them.