How to set interface auto-connection in snapcraft.yaml

How to set interface auto-connection in snapcraft.yaml? Does it support auto-connection in snapcraft.yaml rather than snap- declaration?

auto-connection is nothing you can define in snapcraft.yaml it is a privileged operation that needs review and approval:

if you own a brand store and create device images, you can override this with connection: entries in your gadget.yaml file for your image though: