Export heightmap with painted textures once the landscape has been painted

Go into the landscape editor to the layers in both paint and sculpt mode and right click on the layers and export them to a file → and also import there