import { Observable } from 'rxjs'; import { MainService } from '../main/main.service'; import { TaxonomyVocabulary, TaxonomyVocabularyTree } from '../models/taxonomy-vocabulary'; import * as i0 from "@angular/core"; /** * taxonomy vocabulary service for drupal * @see BACK_END/admin/structure/services/list/END_POINT/resources for more details */ export declare class TaxonomyVocabularyService extends MainService { entityType: string; /** * implement index resource * @return array of the available vocabularies */ getAllVocabularies(): Observable; /** * implement retrive resource * @param vid vocabulary id * @return vocabulary object */ getTaxonomyVocabularyById(vid: number): Observable; /** * implement create resource * @param taxonomyVocabulary the vocabulary to create * @return array of vocabulary id */ createTaxonomyVocabulary(taxonomyVocabulary: TaxonomyVocabulary): Observable; /** * implement update resource * @param taxonomyVocabulary the vocabulary to update * @return array of the current vocabulary whight */ updateTaxonomyVocabulary(taxonomyVocabulary: TaxonomyVocabulary): Observable; /** * implement delete resource * @param vid vocabulary id to delete * @return array of deleted vocabulary id */ deleteTaxonomyVocabulary(vid: number): Observable; /** * implement retrieveByMachineName resource * @param vocabularyMachineName vocabulary machine name * @return vocabulary object */ getTaxonomyVocabularyByMachineName(vocabularyMachineName: string): Observable; /** * implement getTree resource * @param vid vocabulary id * @return a full list of taxonomy terms inside this vocabulary as a tree structure. */ getTaxonomyVocabularyTree(vid: number): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }