This script exports your TextExpander snippets as “.kmmacros” files, suitable for import into Keyboard Maestro 5 as typed key macros. Due to differences between the two applications, this is not a perfect conversion, so snippets that are likely to need additional work are marked with an asterisk after import.
This script uses BBEdit as an intermediary to build the files, but could fairly easily be altered to work with another text editor.