Which options exist for exporting music used on the timeline?
To my knowledge FCPX does not have anything built in for this. You would need 3rd party. 
If you willing to use 3rd party my best bet would be Producer’s Best Friend