import { InjectionToken } from "@angular/core"; import { HttpClient, HttpResponse } from "@angular/common/http"; import { BehaviorSubject, Observable } from "rxjs"; import { DropdownEntry } from "../model/dropdown-entry.dto"; import { DictionaryMetadata } from "../model/dictionary-metadata.dto"; import * as i0 from "@angular/core"; export declare const DICTIONARY_ENDPOINT: InjectionToken; /** * This service interacts with the dictionary api. * * The typical dictionary url would be "/api/dictionaries" */ export declare class DictionaryService { private http; private dictionaryEndpoint; constructor(http: HttpClient, dictionaryEndpoint: string); getDictionaryMetaData(className: string): Observable; getDictionaryMetaDataLoading(className: string, onResponse: (data: Object) => any, onError?: (error: any) => any, onFinalize?: () => any): BehaviorSubject; /** * Return the dictionary metadata based on the class name. * * @param {string} className * @returns {Observable} */ getDictionary(className: string): Observable; /** * Return the dictionary data based on the class name. * * @param {string} className * @returns {Observable} */ getDictionaryEntries(className: string): Observable; getDictionaryEntriesAsXML(className: string): Observable; addDictionaryEntries(className: string, entries: any[]): Observable; deleteDictionaryEntries(className: string, entries: any[]): Observable>; updateDictionaryEntries(className: string, entries: any[]): Observable; getDictionaryDropdownEntries(className: string): Observable; getDictionaryDropdownEntry(className: string, idName: string, id: number): Observable; /** * Returns a full list of dictionaries. * * @returns {Observable} */ getDictionaries(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }