/**
 * OpenAPI spec version: 1.0
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { OcTokenService } from './token.service';
import { ApprovalRule } from '../model/approvalRule';
import { ListApprovalRule } from '../model/listApprovalRule';
import { Configuration } from '../configuration';
export declare class OcApprovalRuleService {
    protected httpClient: HttpClient;
    protected ocTokenService: OcTokenService;
    protected basePath: string;
    defaultHeaders: HttpHeaders;
    configuration: Configuration;
    private impersonating;
    constructor(httpClient: HttpClient, ocTokenService: OcTokenService, basePath: string, configuration: Configuration);
    /**
     * @description enable impersonation by calling this prior to any of the other methods in this service
     *
     */
    As(): this;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param approvalRuleID ID of the approval rule.
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Delete(buyerID: string, approvalRuleID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    Delete(buyerID: string, approvalRuleID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    Delete(buyerID: string, approvalRuleID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param approvalRule
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Create<ApprovalRuleXp = any>(buyerID: string, approvalRule: ApprovalRule, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ApprovalRule<ApprovalRuleXp>>;
    Create<ApprovalRuleXp = any>(buyerID: string, approvalRule: ApprovalRule, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ApprovalRule>>;
    Create<ApprovalRuleXp = any>(buyerID: string, approvalRule: ApprovalRule, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ApprovalRule>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param approvalRuleID ID of the approval rule.
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Get<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ApprovalRule<ApprovalRuleXp>>;
    Get<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ApprovalRule>>;
    Get<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ApprovalRule>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param options.search Word or phrase to search for.
     * @param options.searchOn Comma-delimited list of fields to search on.
     * @param options.sortBy Comma-delimited list of fields to sort by.
     * @param options.page Page of results to return. Default: 1
     * @param options.pageSize Number of results to return per page. Default: 20, max: 100.
     * @param options.filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or &#39;xp.???&#39;
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    List<ApprovalRuleXp = any>(buyerID: string, options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ListApprovalRule<ApprovalRuleXp>>;
    List<ApprovalRuleXp = any>(buyerID: string, options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ListApprovalRule>>;
    List<ApprovalRuleXp = any>(buyerID: string, options?: {
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ListApprovalRule>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param approvalRuleID ID of the approval rule.
     * @param partialApprovalRule
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Patch<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, partialApprovalRule: ApprovalRule, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ApprovalRule<ApprovalRuleXp>>;
    Patch<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, partialApprovalRule: ApprovalRule, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ApprovalRule>>;
    Patch<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, partialApprovalRule: ApprovalRule, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ApprovalRule>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param approvalRuleID ID of the approval rule.
     * @param approvalRule
     * @param options.observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param options.reportProgress flag to report request and response progress.
     */
    Save<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, approvalRule: ApprovalRule, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ApprovalRule<ApprovalRuleXp>>;
    Save<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, approvalRule: ApprovalRule, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ApprovalRule>>;
    Save<ApprovalRuleXp = any>(buyerID: string, approvalRuleID: string, approvalRule: ApprovalRule, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ApprovalRule>>;
}
