import { Observable } from "rxjs"; import { DescriptorFormControl, DescriptorOption } from "../descriptor"; import { VedraxApiService } from "./vedrax-api.service"; import * as i0 from "@angular/core"; /** * Service that provides methods for getting descriptor form. */ export declare class LovService { private apiService; constructor(apiService: VedraxApiService); /** * cached LOVs for all the application session */ private lovs; /** * Helper method for checking if an entry is available in cache * @param endpoint * @returns */ private hasOptionsInCache; /** * Helper method for getting list of options by endpoint * @param endpoint the API endpoint * @returns the returned options from the API */ private getOptionsFromCache; /** * Helper method for adding options per endpoint to the cache * @param endpoint the API endpoint * @param options the returned options from the API */ private addOptionsToCache; /** * Method for getting options from control descriptor * @param descriptor * @returns */ getOptionsFromControlDescriptor(descriptor?: DescriptorFormControl): Observable; /** * Method for getting the options from cache or from API * @param endpoint * @returns */ getOptions(endpoint?: string): Observable; getOption(endpoint: string, key?: string): Observable; /** * Method for getting the options from API * @param endpoint * @returns */ private getOptionsFromAPI; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }