Inferring the complex internal structure of dwarf galaxies