import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AnnulSingleStructuredDataResponse } from '../model/annulSingleStructuredDataResponse';
import { GetRecipeComposerResponse } from '../model/getRecipeComposerResponse';
import { GetRecipeResponse } from '../model/getRecipeResponse';
import { ResourceListOfGetRecipeComposerResponse } from '../model/resourceListOfGetRecipeComposerResponse';
import { ResourceListOfGetRecipeResponse } from '../model/resourceListOfGetRecipeResponse';
import { UpsertRecipeComposerRequest } from '../model/upsertRecipeComposerRequest';
import { UpsertRecipeRequest } from '../model/upsertRecipeRequest';
import { UpsertSingleStructuredDataResponse } from '../model/upsertSingleStructuredDataResponse';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export interface DeleteConfigurationRecipeRequestParams {
    /** The scope of the Configuration Recipe to delete. */
    scope: string;
    /** The Configuration Recipe to delete. */
    code: string;
}
export interface DeleteRecipeComposerRequestParams {
    /** The scope of the Recipe Composer to delete. */
    scope: string;
    /** The Recipe Composer to delete. */
    code: string;
}
export interface GetConfigurationRecipeRequestParams {
    /** The scope of the Configuration Recipe to retrieve. */
    scope: string;
    /** The name of the recipe to retrieve the data for. */
    code: string;
    /** The asAt datetime at which to retrieve the Configuration Recipe. Defaults to return the latest version if not specified. */
    asAt?: string;
}
export interface GetDerivedRecipeRequestParams {
    /** The scope of the Configuration Recipe or Recipe Composer to return. */
    scope: string;
    /** The code of the Configuration Recipe or Recipe Composer to return. */
    code: string;
    /** The asAt datetime at which to retrieve the Configuration Recipe. Defaults to return the latest version if not specified. */
    asAt?: string;
}
export interface GetRecipeComposerRequestParams {
    /** The scope of the Recipe Composer to retrieve. */
    scope: string;
    /** The name of the Recipe Composer to retrieve the data for. */
    code: string;
    /** The asAt datetime at which to retrieve the Recipe Composer. Defaults to return the latest version if not specified. */
    asAt?: string;
}
export interface GetRecipeComposerResolvedInlineRequestParams {
    /** Recipe composer used to expand into the Configuration Recipe. */
    upsertRecipeComposerRequest: UpsertRecipeComposerRequest;
}
export interface ListConfigurationRecipesRequestParams {
    /** The asAt datetime at which to list the Configuration Recipes. Defaults to latest if not specified. */
    asAt?: string;
    /** Expression to filter the result set. Read more about filtering results from LUSID here:              https://support.lusid.com/filtering-results-from-lusid. */
    filter?: string;
}
export interface ListDerivedRecipesRequestParams {
    /** The asAt datetime at which to list the Configuration Recipes. Defaults to latest if not specified. */
    asAt?: string;
    /** Expression to filter the result set, note this functionality is not yet enabled for this endpoint. */
    filter?: string;
}
export interface ListRecipeComposersRequestParams {
    /** The asAt datetime at which to list the Recipes Composers. Defaults to latest if not specified. */
    asAt?: string;
    /** Expression to filter the result set, note this functionality is not yet enabled for this endpoint. */
    filter?: string;
}
export interface UpsertConfigurationRecipeRequestParams {
    /** The Configuration Recipe to update or insert */
    upsertRecipeRequest: UpsertRecipeRequest;
}
export interface UpsertRecipeComposerRequestParams {
    /** The Recipe Composer to update or insert */
    upsertRecipeComposerRequest: UpsertRecipeComposerRequest;
}
export declare class ConfigurationRecipeService {
    protected httpClient: HttpClient;
    protected basePath: string;
    defaultHeaders: HttpHeaders;
    configuration: Configuration;
    encoder: HttpParameterCodec;
    constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
    private addToHttpParams;
    private addToHttpParamsRecursive;
    /**
     * DeleteConfigurationRecipe: Delete a Configuration Recipe, assuming that it is present.
     * Delete the specified Configuration Recipe from a single scope.                The response will return either detail of the deleted item, or an explanation (failure) as to why this did not succeed.                It is important to always check for any unsuccessful response.
     * @param requestParameters
     * @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.
     */
    deleteConfigurationRecipe(requestParameters?: DeleteConfigurationRecipeRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<AnnulSingleStructuredDataResponse>;
    deleteConfigurationRecipe(requestParameters?: DeleteConfigurationRecipeRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<AnnulSingleStructuredDataResponse>>;
    deleteConfigurationRecipe(requestParameters?: DeleteConfigurationRecipeRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<AnnulSingleStructuredDataResponse>>;
    /**
     * DeleteRecipeComposer: Delete a Recipe Composer, assuming that it is present.
     * Delete the specified Recipe Composer from a single scope.                The response will return either detail of the deleted item, or an explanation (failure) as to why this did not succeed.                It is important to always check for any unsuccessful response.
     * @param requestParameters
     * @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.
     */
    deleteRecipeComposer(requestParameters?: DeleteRecipeComposerRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<AnnulSingleStructuredDataResponse>;
    deleteRecipeComposer(requestParameters?: DeleteRecipeComposerRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<AnnulSingleStructuredDataResponse>>;
    deleteRecipeComposer(requestParameters?: DeleteRecipeComposerRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<AnnulSingleStructuredDataResponse>>;
    /**
     * GetConfigurationRecipe: Get Configuration Recipe
     * Get a Configuration Recipe from a single scope.                The response will return either the recipe that has been stored, or a failure explaining why the request was unsuccessful.                It is important to always check for any unsuccessful requests (failures).
     * @param requestParameters
     * @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.
     */
    getConfigurationRecipe(requestParameters?: GetConfigurationRecipeRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<GetRecipeResponse>;
    getConfigurationRecipe(requestParameters?: GetConfigurationRecipeRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<GetRecipeResponse>>;
    getConfigurationRecipe(requestParameters?: GetConfigurationRecipeRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<GetRecipeResponse>>;
    /**
     * GetDerivedRecipe: Get Configuration Recipe either from the store or expanded from a Recipe Composer.
     * If scope-code is referring to a Configuration Recipe it is returned, if it refers to Recipe Composer, it is expanded into a Configuration Recipe and returned.
     * @param requestParameters
     * @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.
     */
    getDerivedRecipe(requestParameters?: GetDerivedRecipeRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<GetRecipeResponse>;
    getDerivedRecipe(requestParameters?: GetDerivedRecipeRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<GetRecipeResponse>>;
    getDerivedRecipe(requestParameters?: GetDerivedRecipeRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<GetRecipeResponse>>;
    /**
     * GetRecipeComposer: Get Recipe Composer
     * Get a Recipe Composer from a single scope.                The response will return either the recipe composer that has been stored, or a failure explaining why the request was unsuccessful.                It is important to always check for any unsuccessful requests (failures).
     * @param requestParameters
     * @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.
     */
    getRecipeComposer(requestParameters?: GetRecipeComposerRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<GetRecipeComposerResponse>;
    getRecipeComposer(requestParameters?: GetRecipeComposerRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<GetRecipeComposerResponse>>;
    getRecipeComposer(requestParameters?: GetRecipeComposerRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<GetRecipeComposerResponse>>;
    /**
     * GetRecipeComposerResolvedInline: Given a Recipe Composer, this endpoint expands into a Configuration Recipe without persistence. Primarily used for testing purposes.
     * Resolves an inline recipe composer into a ConfigurationRecipe.
     * @param requestParameters
     * @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.
     */
    getRecipeComposerResolvedInline(requestParameters?: GetRecipeComposerResolvedInlineRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<GetRecipeResponse>;
    getRecipeComposerResolvedInline(requestParameters?: GetRecipeComposerResolvedInlineRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<GetRecipeResponse>>;
    getRecipeComposerResolvedInline(requestParameters?: GetRecipeComposerResolvedInlineRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<GetRecipeResponse>>;
    /**
     * ListConfigurationRecipes: List the set of Configuration Recipes
     * List the set of configuration recipes at the specified date/time and scope. Note this only returns recipes stored directly and does not include any recipes expanded from recipe composers.
     * @param requestParameters
     * @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.
     */
    listConfigurationRecipes(requestParameters?: ListConfigurationRecipesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfGetRecipeResponse>;
    listConfigurationRecipes(requestParameters?: ListConfigurationRecipesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfGetRecipeResponse>>;
    listConfigurationRecipes(requestParameters?: ListConfigurationRecipesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfGetRecipeResponse>>;
    /**
     * ListDerivedRecipes: List the complete set of all Configuration Recipes, both from the configuration recipe store and also from expanded recipe composers.
     * This endpoints returns a union of the output of ListConfigurationRecipes and the resolved Recipe Composers from the ListRecipeComposers endpoints.  Recipe Composers that fail to generate a valid Configuration Recipe will not be reported.
     * @param requestParameters
     * @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.
     */
    listDerivedRecipes(requestParameters?: ListDerivedRecipesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfGetRecipeResponse>;
    listDerivedRecipes(requestParameters?: ListDerivedRecipesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfGetRecipeResponse>>;
    listDerivedRecipes(requestParameters?: ListDerivedRecipesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfGetRecipeResponse>>;
    /**
     * ListRecipeComposers: List the set of Recipe Composers
     * List the set of Recipe Composers at the specified date/time and scope
     * @param requestParameters
     * @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.
     */
    listRecipeComposers(requestParameters?: ListRecipeComposersRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfGetRecipeComposerResponse>;
    listRecipeComposers(requestParameters?: ListRecipeComposersRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfGetRecipeComposerResponse>>;
    listRecipeComposers(requestParameters?: ListRecipeComposersRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfGetRecipeComposerResponse>>;
    /**
     * UpsertConfigurationRecipe: Upsert a Configuration Recipe. This creates or updates the data in Lusid.
     * Update or insert one Configuration Recipe in a single scope. An item will be updated if it already exists  and inserted if it does not.                The response will return the successfully updated or inserted Configuration Recipe or failure message if unsuccessful                It is important to always check to verify success (or failure).
     * @param requestParameters
     * @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.
     */
    upsertConfigurationRecipe(requestParameters?: UpsertConfigurationRecipeRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<UpsertSingleStructuredDataResponse>;
    upsertConfigurationRecipe(requestParameters?: UpsertConfigurationRecipeRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<UpsertSingleStructuredDataResponse>>;
    upsertConfigurationRecipe(requestParameters?: UpsertConfigurationRecipeRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<UpsertSingleStructuredDataResponse>>;
    /**
     * UpsertRecipeComposer: Upsert a Recipe Composer. This creates or updates the data in Lusid.
     * Update or insert one Recipe Composer in a single scope. An item will be updated if it already exists  and inserted if it does not.                The response will return the successfully updated or inserted Recipe Composer or failure message if unsuccessful                It is important to always check to verify success (or failure).
     * @param requestParameters
     * @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.
     */
    upsertRecipeComposer(requestParameters?: UpsertRecipeComposerRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<UpsertSingleStructuredDataResponse>;
    upsertRecipeComposer(requestParameters?: UpsertRecipeComposerRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<UpsertSingleStructuredDataResponse>>;
    upsertRecipeComposer(requestParameters?: UpsertRecipeComposerRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<UpsertSingleStructuredDataResponse>>;
    static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationRecipeService, [null, { optional: true; }, { optional: true; }]>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationRecipeService>;
}
