added typescript declaration file for the library