import { GetCommerceObjectArgs, Product, GetProductsArgs, Category, CommonArgs, CustomerGroup } from './types' /** * Interface for a generic API. */ // eslint-disable-next-line @typescript-eslint/ban-types export type API = {} /** * Interface for a Commerce API. */ export type CommerceAPI = API & { getProduct: (args: GetCommerceObjectArgs) => Promise getProducts: (args: GetProductsArgs) => Promise getCategory: (args: GetCommerceObjectArgs) => Promise getCategoryTree: (args: CommonArgs) => Promise getCustomerGroups: (args: CommonArgs) => Promise // eslint-disable-next-line @typescript-eslint/no-explicit-any getRawProducts: (args: GetProductsArgs) => Promise }