import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
import { Observable } from 'rxjs';
import { ArrayOfPromoCodeTickets } from '../model/arrayOfPromoCodeTickets';
import { ArrayOfPromoCodes } from '../model/arrayOfPromoCodes';
import { CreatePromoCodeRequest } from '../model/createPromoCodeRequest';
import { CreatePromoCodeTicketRequest } from '../model/createPromoCodeTicketRequest';
import { PromoCode } from '../model/promoCode';
import { PromoCodePayoutType } from '../model/promoCodePayoutType';
import { PromoCodeRewardAccountBalancesElement } from '../model/promoCodeRewardAccountBalancesElement';
import { PromoCodeTicketStatus } from '../model/promoCodeTicketStatus';
import { PromoCodeTrigger } from '../model/promoCodeTrigger';
import { UpdatePromoCodeRequest } from '../model/updatePromoCodeRequest';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export declare class PromoCodesService {
    protected httpClient: HttpClient;
    protected basePath: string;
    defaultHeaders: HttpHeaders;
    configuration: Configuration;
    encoder: HttpParameterCodec;
    constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
    private addToHttpParams;
    private addToHttpParamsRecursive;
    /**
     * @param createPromoCodeRequest
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    createPromoCode(createPromoCodeRequest: CreatePromoCodeRequest, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<PromoCode>;
    createPromoCode(createPromoCodeRequest: CreatePromoCodeRequest, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpResponse<PromoCode>>;
    createPromoCode(createPromoCodeRequest: CreatePromoCodeRequest, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpEvent<PromoCode>>;
    /**
     * @param createPromoCodeTicketRequest
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    createPromoCodeTicket(createPromoCodeTicketRequest: CreatePromoCodeTicketRequest, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<any>;
    createPromoCodeTicket(createPromoCodeTicketRequest: CreatePromoCodeTicketRequest, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpResponse<any>>;
    createPromoCodeTicket(createPromoCodeTicketRequest: CreatePromoCodeTicketRequest, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpEvent<any>>;
    /**
     * @param id
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    deletePromoCode(id: string, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<any>;
    deletePromoCode(id: string, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpResponse<any>>;
    deletePromoCode(id: string, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpEvent<any>>;
    /**
     * @param page
     * @param size
     * @param code
     * @param referrerUserId
     * @param status
     * @param accountId
     * @param trigger
     * @param payoutType
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getPromoCodeTickets(page?: number, size?: number, code?: string, referrerUserId?: number, status?: PromoCodeTicketStatus, accountId?: number, trigger?: PromoCodeTrigger, payoutType?: PromoCodePayoutType, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<ArrayOfPromoCodeTickets>;
    getPromoCodeTickets(page?: number, size?: number, code?: string, referrerUserId?: number, status?: PromoCodeTicketStatus, accountId?: number, trigger?: PromoCodeTrigger, payoutType?: PromoCodePayoutType, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpResponse<ArrayOfPromoCodeTickets>>;
    getPromoCodeTickets(page?: number, size?: number, code?: string, referrerUserId?: number, status?: PromoCodeTicketStatus, accountId?: number, trigger?: PromoCodeTrigger, payoutType?: PromoCodePayoutType, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpEvent<ArrayOfPromoCodeTickets>>;
    /**
     * @param page
     * @param size
     * @param code
     * @param referrerUserId
     * @param trigger
     * @param payoutType
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getPromoCodes(page?: number, size?: number, code?: string, referrerUserId?: number, trigger?: PromoCodeTrigger, payoutType?: PromoCodePayoutType, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<ArrayOfPromoCodes>;
    getPromoCodes(page?: number, size?: number, code?: string, referrerUserId?: number, trigger?: PromoCodeTrigger, payoutType?: PromoCodePayoutType, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpResponse<ArrayOfPromoCodes>>;
    getPromoCodes(page?: number, size?: number, code?: string, referrerUserId?: number, trigger?: PromoCodeTrigger, payoutType?: PromoCodePayoutType, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpEvent<ArrayOfPromoCodes>>;
    /**
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getPromoCodesRewardAccountBalances(observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<Array<PromoCodeRewardAccountBalancesElement>>;
    getPromoCodesRewardAccountBalances(observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpResponse<Array<PromoCodeRewardAccountBalancesElement>>>;
    getPromoCodesRewardAccountBalances(observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpEvent<Array<PromoCodeRewardAccountBalancesElement>>>;
    /**
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    processAllPromoCodeTickets(observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<any>;
    processAllPromoCodeTickets(observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpResponse<any>>;
    processAllPromoCodeTickets(observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpEvent<any>>;
    /**
     * @param id
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    processPromoCodeTicket(id: string, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<any>;
    processPromoCodeTicket(id: string, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpResponse<any>>;
    processPromoCodeTicket(id: string, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: undefined;
        context?: HttpContext;
    }): Observable<HttpEvent<any>>;
    /**
     * @param id
     * @param updatePromoCodeRequest
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    updatePromoCode(id: string, updatePromoCodeRequest: UpdatePromoCodeRequest, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<PromoCode>;
    updatePromoCode(id: string, updatePromoCodeRequest: UpdatePromoCodeRequest, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpResponse<PromoCode>>;
    updatePromoCode(id: string, updatePromoCodeRequest: UpdatePromoCodeRequest, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'application/json';
        context?: HttpContext;
    }): Observable<HttpEvent<PromoCode>>;
    static ɵfac: i0.ɵɵFactoryDeclaration<PromoCodesService, [null, { optional: true; }, { optional: true; }]>;
    static ɵprov: i0.ɵɵInjectableDeclaration<PromoCodesService>;
}
