add TypeScript interface for transport API

I based this on the social.d.ts which seemed like it had the least redundancy and was the most recent file. I'm a little fuzzy on the finer points of TypeScript modules but this seems to work well for my work on moving  socks-rtc over to the transport API.