add TypeScript interface for transport API
Merge pull request #2 from freedomjs/yangoon-transport-api

add TypeScript interface for transport API