The deal, reached after months of negotiations, is intended to open the way for so-called "intra Afghan" talks to end the fighting and reach a full political settlement, but must still be approved by US President Donald Trump before it can be signed.