- moving interfaces to appropriate places
- fixing compilation error in vg.ts