First make the dressing. Put all the ingredients in a small saucepan and warm over a low heat, stirring, until the sugar has dissolved. Leave to cool.
Put the tomatoes, cucumber, papaya or mango, chilli, bean sprouts, spring onions and herbs in a bowl. Add the dressing and toss well. Transfer to a platter. Sprinkle over the peanuts and serve immediately.