How can I export navmesh data to file?

There are no ready to use functions for that I’m afraid. You’ll need to get familiar with Recast code and fetch that data yourself.