> And i dont want to mix the implementation code with type declaration code. I > need to split as much code as possible.
In different modules or in different files? If in different modules, as for now, everything exported are visible to other modules that import it. If it's only needed in different file, use [include statement](https://nim-lang.github.io/Nim/manual.html#modules-include-statement)