Csv import: how to handle relationships and media galleries

I’m trying to import objects via csv. I was wondering if there’s a way to relate an object with digital assets, importing the relation with the files in a photo gallery field type.
Also, I don’t understand how to handle relationships. For example, would it be possible to create a many to many object relationship through the csv import?