How the import-export feature implemented?

Hello, I am trying to understand the different parts of joplin code. Particularly more focused on desktop version. I wanted to ask how the import export features are implemented.