lib/types: Create common file for type definitions