Auto connect

How to auto connect interfaces in my snap.

? what should be added to the snapcraft.yaml

Thanks