encoder / decoder type hints