This looks like a 3 way or 4 way deal here.
Pakistan gets some territories or points in Eastern Afghanistan for its own security
Afghanistan gets a coalition government of Northern Alliance and other groups
U.S gets a base in Afghanistan.
China probably wouldn't support the idea of a U.S base in Afghanistan but certainly Russia could have some sort of deal with the U.S and it could look something like U.S. keeping away from Central Asia to preserve Russian influence and U.S presence .in Afghanistan and Pakistani presence in Eastern Afghanistan to take care of Taliban and ISIS.