/**
 * 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 { CostCenter } from '../model/costCenter';
import { CostCenterAssignment } from '../model/costCenterAssignment';
import { ListCostCenter } from '../model/listCostCenter';
import { ListCostCenterAssignment } from '../model/listCostCenterAssignment';
import { Configuration } from '../configuration';
export declare class OcCostCenterService {
    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 costCenterID ID of the cost center.
     * @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, costCenterID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    Delete(buyerID: string, costCenterID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    Delete(buyerID: string, costCenterID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param costCenter
     * @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<CostCenterXp = any>(buyerID: string, costCenter: CostCenter, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<CostCenter<CostCenterXp>>;
    Create<CostCenterXp = any>(buyerID: string, costCenter: CostCenter, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<CostCenter>>;
    Create<CostCenterXp = any>(buyerID: string, costCenter: CostCenter, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<CostCenter>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param costCenterID ID of the cost center.
     * @param options.userID ID of the user.
     * @param options.userGroupID ID of the user group.
     * @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.
     */
    DeleteAssignment(buyerID: string, costCenterID: string, options?: {
        userID?: string;
        userGroupID?: string;
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    DeleteAssignment(buyerID: string, costCenterID: string, options?: {
        userID?: string;
        userGroupID?: string;
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    DeleteAssignment(buyerID: string, costCenterID: string, options?: {
        userID?: string;
        userGroupID?: string;
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param costCenterID ID of the cost center.
     * @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<CostCenterXp = any>(buyerID: string, costCenterID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<CostCenter<CostCenterXp>>;
    Get<CostCenterXp = any>(buyerID: string, costCenterID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<CostCenter>>;
    Get<CostCenterXp = any>(buyerID: string, costCenterID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<CostCenter>>;
    /**
     *
     *
     * @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<CostCenterXp = 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<ListCostCenter<CostCenterXp>>;
    List<CostCenterXp = 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<ListCostCenter>>;
    List<CostCenterXp = 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<ListCostCenter>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param options.costCenterID ID of the cost center.
     * @param options.userID ID of the user.
     * @param options.userGroupID ID of the user group.
     * @param options.level Level of the cost center assignment. Possible values: User, Group, Company.
     * @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.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.
     */
    ListAssignments(buyerID: string, options?: {
        costCenterID?: string;
        userID?: string;
        userGroupID?: string;
        level?: string;
        page?: number;
        pageSize?: number;
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ListCostCenterAssignment>;
    ListAssignments(buyerID: string, options?: {
        costCenterID?: string;
        userID?: string;
        userGroupID?: string;
        level?: string;
        page?: number;
        pageSize?: number;
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ListCostCenterAssignment>>;
    ListAssignments(buyerID: string, options?: {
        costCenterID?: string;
        userID?: string;
        userGroupID?: string;
        level?: string;
        page?: number;
        pageSize?: number;
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ListCostCenterAssignment>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param costCenterID ID of the cost center.
     * @param partialCostCenter
     * @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<CostCenterXp = any>(buyerID: string, costCenterID: string, partialCostCenter: CostCenter, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<CostCenter<CostCenterXp>>;
    Patch<CostCenterXp = any>(buyerID: string, costCenterID: string, partialCostCenter: CostCenter, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<CostCenter>>;
    Patch<CostCenterXp = any>(buyerID: string, costCenterID: string, partialCostCenter: CostCenter, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<CostCenter>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param costCenterID ID of the cost center.
     * @param costCenter
     * @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<CostCenterXp = any>(buyerID: string, costCenterID: string, costCenter: CostCenter, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<CostCenter<CostCenterXp>>;
    Save<CostCenterXp = any>(buyerID: string, costCenterID: string, costCenter: CostCenter, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<CostCenter>>;
    Save<CostCenterXp = any>(buyerID: string, costCenterID: string, costCenter: CostCenter, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<CostCenter>>;
    /**
     *
     *
     * @param buyerID ID of the buyer.
     * @param costCenterAssignment
     * @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.
     */
    SaveAssignment(buyerID: string, costCenterAssignment: CostCenterAssignment, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    SaveAssignment(buyerID: string, costCenterAssignment: CostCenterAssignment, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    SaveAssignment(buyerID: string, costCenterAssignment: CostCenterAssignment, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
}
