remove warnings

Remove some warnings about private types being exported in a type signature, not sure if this is the better solution.