import { Type, TypeDraft, TypeUpdate } from '@commercetools/platform-sdk'; export type GetByKeyCustomType = { key: string; }; export type ExistsByKeyCustomType = { key: string; }; export type UpdateCustomType = { key: string; updateActions: TypeUpdate; }; export interface CustomTypeService { getByKey(opts: GetByKeyCustomType): Promise; existsByKey(opts: GetByKeyCustomType): Promise; create(draft: TypeDraft): Promise; update(opts: UpdateCustomType): Promise; createOrUpdate(customTypeDraft: TypeDraft): Promise; createOrUpdatePredefinedPaymentMethodTypes(): Promise; createOrUpdatePredefinedInterfaceInteractionType(): Promise; }