Enumerate Structure Transformation

I want to use SpecieProximityFilter to discard structures where two different species “A” and “B” are less than 4 Angstrom apart. For single type of specie e.g. “A” it is working fine like
SpecieProximityFilter({“A”: 4})
how to introduce specie B in this constraint.

Thank you!