Defining email template with text or html type in plugin

The only thing that doesn’t seem to be possible is to register both a plain text and an HTML version under the same template name, or at least I don’t know how.