Added most of the typescript declarations for Core.