import RequestService from '../helpers/request/request-service'; import type { RequestSuccessResponse, RequestErrorResponse } from '../helpers/request/request-service.types'; import * as PromotionsV3ApiSpecs from '../generated/promotions-v3'; export * as PromotionsV3ApiSpecs from '../generated/promotions-v3'; export declare class PromotionsV3Api { private readonly request; constructor(request: RequestService); getPromotions(query?: PromotionsV3ApiSpecs.GetPromotionsData['query']): Promise; meta: PromotionsV3ApiSpecs.CollectionMeta; }>> | RequestErrorResponse<422, Required>>; createPromotion(requestBody: PromotionsV3ApiSpecs.CreatePromotionData['body']): Promise> | RequestSuccessResponse<201, Required<{ data?: PromotionsV3ApiSpecs.SavedCouponPromotion | PromotionsV3ApiSpecs.SavedAutomaticPromotion; meta?: { [key: string]: unknown; }; }>> | RequestErrorResponse<400, Required> | RequestErrorResponse<403, Required>>; deletePromotions(query?: PromotionsV3ApiSpecs.DeletePromotionsData['query']): Promise | RequestErrorResponse<422, Required<{ errors?: Array; meta?: PromotionsV3ApiSpecs.BulkActionResponseMeta; }>>>; getPromotion(id: PromotionsV3ApiSpecs.GetPromotionData['path']['id']): Promise> | RequestErrorResponse<404, Required>>; updatePromotion(id: PromotionsV3ApiSpecs.UpdatePromotionData['path']['id'], requestBody: PromotionsV3ApiSpecs.UpdatePromotionData['body']): Promise> | RequestSuccessResponse<200, Required<{ data?: PromotionsV3ApiSpecs.SavedCouponPromotion | PromotionsV3ApiSpecs.SavedAutomaticPromotion; meta?: { [key: string]: unknown; }; }>>>; deletePromotion(id: PromotionsV3ApiSpecs.DeletePromotionData['path']['id']): Promise | RequestSuccessResponse<204, void>>; getPromotionCodes(promotionId: PromotionsV3ApiSpecs.GetPromotionCodesData['path']['promotion_id'], query?: PromotionsV3ApiSpecs.GetPromotionCodesData['query']): Promise | RequestSuccessResponse<200, Required<{ data?: Array; meta?: PromotionsV3ApiSpecs.OptionalCursorCollectionMeta; }>>>; createPromotionCode(promotionId: PromotionsV3ApiSpecs.CreatePromotionCodeData['path']['promotion_id'], requestBody: PromotionsV3ApiSpecs.CreatePromotionCodeData['body']): Promise | RequestSuccessResponse<201, Required<{ data?: PromotionsV3ApiSpecs.CouponCode; meta?: { [key: string]: unknown; }; }>>>; deleteCouponCodes(promotionId: PromotionsV3ApiSpecs.DeleteCouponCodesData['path']['promotion_id'], query?: PromotionsV3ApiSpecs.DeleteCouponCodesData['query']): Promise | RequestErrorResponse<422, Required<{ errors?: Array; meta?: PromotionsV3ApiSpecs.BulkActionResponseMeta; }>>>; generatePromotionCodesBatch(promotionId: PromotionsV3ApiSpecs.GeneratePromotionCodesBatchData['path']['promotion_id'], requestBody: PromotionsV3ApiSpecs.GeneratePromotionCodesBatchData['body']): Promise> | RequestErrorResponse<400, Required> | RequestErrorResponse<403, Required> | RequestSuccessResponse<201, Required<{ data?: { created?: string; max_uses?: number; max_uses_per_customer?: number; batch_size?: number; codes?: Array; }; meta?: { [key: string]: unknown; }; }>> | RequestErrorResponse<405, Required>>; deleteCouponCode(promotionId: PromotionsV3ApiSpecs.DeleteCouponCodeData['path']['promotion_id'], codeId: PromotionsV3ApiSpecs.DeleteCouponCodeData['path']['code_id']): Promise | RequestSuccessResponse<204, void>>; }