Add code to analyze declaration files - todo use TypeScript itself :)