I've created an interface for a contract including it's contract structure as well as all its custom types. I'm making use of that interface both in it's own contract as well as importing it in an entirely separate contract. In the separate contract I have an Errors enum which is conflicting with the Errors enum from the imported interface even though I don't explicitly import or use those Errors in the separate contract.
I believe this has something to do with the interface exporting the types. Is there a way to rename or exclude types that aren't used in this separate contract so only the few types and interface I'm importing actually get built into the final wasm interface?