Brompton derailleur is very simple, they use a special pulley with flanges.
The cable from the bars pulls the shifting fork pushing the pulley sideways on a shaft, with that fork-guide, ..
return spring makes it go in the opposite direction.
[OK so not about the derailleur at all]
...