It is not exactly exporting in layers, but if you export as SVG, you can (relatively) easily separate different types of objects within an export file.
Thanks!