I see now. flow-typed still does not support importing type definitions from other libdefs. That's really silly, I'd need to copy&paste basically complete type definitions file from metalsmith to write typedefs for metalsmith's plugins. I don't wanna do that.