If Pakistan doesn't need Afghanistan, then Pakistan will not need USA. The whole point of USA needing Pakistan is due to exit's plan, not to mention Pakistan is versed with the ground reality of Afghanistan. Given the unpredictable diplomatic between Pakistan and Afghanistan, that is about to change the priority for Pakistan.
As the situation unveils, Pakistan no longer needs USA, but as if now, USA would need Pakistan as long as USA stays in Afghanistan. USA cannot proceed to the exit plan without Pakistan while Pakistan wants nothing to do with headache Afghanistan.
Whereas for Pakistan, if the diplomatic situation between Pakistan and Afghanistan continues to get worse, say hello to border-sealed with no more trade between Pakistan and Afghanistan. That means Pakistan will have no need for Afghanistan. What happens in Afghanistan is totally Afghanistan's call. Pakistan is done carrying Afghanistan as long as Pakistan could. It is over.