/**
 * 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 { AccessToken } from '../model/accessToken';
import { ImpersonateTokenRequest } from '../model/impersonateTokenRequest';
import { ListUser } from '../model/listUser';
import { User } from '../model/user';
import { Configuration } from '../configuration';
export declare class OcSupplierUserService {
    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 supplierID ID of the supplier.
     * @param userID ID of the user.
     * @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(supplierID: string, userID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<any>;
    Delete(supplierID: string, userID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<any>>;
    Delete(supplierID: string, userID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<any>>;
    /**
     *
     *
     * @param supplierID ID of the supplier.
     * @param user
     * @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<UserXp = any>(supplierID: string, user: User, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<User<UserXp>>;
    Create<UserXp = any>(supplierID: string, user: User, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<User>>;
    Create<UserXp = any>(supplierID: string, user: User, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<User>>;
    /**
     *
     *
     * @param supplierID ID of the supplier.
     * @param userID ID of the user.
     * @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<UserXp = any>(supplierID: string, userID: string, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<User<UserXp>>;
    Get<UserXp = any>(supplierID: string, userID: string, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<User>>;
    Get<UserXp = any>(supplierID: string, userID: string, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<User>>;
    /**
     *
     *
     * @param supplierID ID of the supplier.
     * @param userID ID of the user.
     * @param impersonateTokenRequest
     * @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.
     */
    GetAccessToken(supplierID: string, userID: string, impersonateTokenRequest: ImpersonateTokenRequest, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<AccessToken>;
    GetAccessToken(supplierID: string, userID: string, impersonateTokenRequest: ImpersonateTokenRequest, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<AccessToken>>;
    GetAccessToken(supplierID: string, userID: string, impersonateTokenRequest: ImpersonateTokenRequest, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<AccessToken>>;
    /**
     *
     *
     * @param supplierID ID of the supplier.
     * @param options.userGroupID ID of the user group.
     * @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<UserXp = any>(supplierID: string, options?: {
        userGroupID?: string;
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<ListUser<UserXp>>;
    List<UserXp = any>(supplierID: string, options?: {
        userGroupID?: string;
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<ListUser>>;
    List<UserXp = any>(supplierID: string, options?: {
        userGroupID?: string;
        search?: string;
        searchOn?: string;
        sortBy?: string;
        page?: number;
        pageSize?: number;
        filters?: {
            [key: string]: string | Array<string>;
        };
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<ListUser>>;
    /**
     *
     *
     * @param supplierID ID of the supplier.
     * @param userID ID of the user.
     * @param partialUser
     * @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<UserXp = any>(supplierID: string, userID: string, partialUser: User, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<User<UserXp>>;
    Patch<UserXp = any>(supplierID: string, userID: string, partialUser: User, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<User>>;
    Patch<UserXp = any>(supplierID: string, userID: string, partialUser: User, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<User>>;
    /**
     *
     *
     * @param supplierID ID of the supplier.
     * @param userID ID of the user.
     * @param user
     * @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<UserXp = any>(supplierID: string, userID: string, user: User, options?: {
        observe?: 'body';
        reportProgress?: boolean;
    }): Observable<User<UserXp>>;
    Save<UserXp = any>(supplierID: string, userID: string, user: User, options?: {
        observe?: 'response';
        reportProgress?: boolean;
    }): Observable<HttpResponse<User>>;
    Save<UserXp = any>(supplierID: string, userID: string, user: User, options?: {
        observe?: 'events';
        reportProgress?: boolean;
    }): Observable<HttpEvent<User>>;
}
