Azerbaijan and Armenia have published the text of their US-brokered peace deal, pledging mutual recognition, a ban on territorial claims and foreign troops at their border, and cooperation in diplomacy, trade, and other fields, once the agreement is ratified.