In a medium nonreactive pot, combine the sugar, vinegars, cinnamon, cardamom, star anise, ginger, lemon, and peppercorns. Simmer, uncovered, for 10 minutes. Add the figs, cover, and continue simmering for 3 minutes. Remove from the heat and let the figs cool in the syrup. The figs can be prepared up to this point and stored in their syrup in the refrigerator in an airtight container for up to 2 weeks. Using a slotted spoon, carefully remove the figs, reserving the poaching syrup for another use.