Would it be possible to use this library https://github.com/johannes-wolf/typst-canvas to provide an option for exporting diagrams to Typst? It claims to have a similar API to TikZ.