import { EventEmitter } from '@angular/core'; import { Observable } from 'rxjs'; import { NamedFileUpload, NavLink, SearchOptions, SearchResults, WorkflowHistoryItem, WorkflowInformation, WorkflowTransitionOptions, Resource } from './interfaces'; import { Vocabulary } from './vocabularies'; import { APIService } from './api.service'; import { ConfigurationService } from './configuration.service'; import { ReplaySubject } from 'rxjs'; import { CacheService } from './cache.service'; export declare class ResourceService { protected api: APIService; protected cache: CacheService; protected configuration: ConfigurationService; defaultExpand: any; resourceModified: EventEmitter<{ id: string; context: any; } | null>; traversingUnauthorized: EventEmitter; copySource: ReplaySubject; static getSearchQueryString(query: { [key: string]: any; }, options?: SearchOptions): string; static lightFileRead(file: File): Observable; constructor(api: APIService, cache: CacheService, configuration: ConfigurationService); /** * Copy a resource (Plone REST API) * @param sourcePath * @param targetPath */ copy(sourcePath: string, targetPath: string): Observable; /** * Copy a resource (same as copy, but in Guillotina) * @param sourcePath * @param targetPath */ duplicate(sourcePath: string, targetPath: string): Observable; private getContainerInPath; create(path: string, model: any, generateIdFromTitle?: boolean): Observable; generateIdFromTitle(title: string): string; delete(path: string): Observable; find(query: { [key: string]: any; }, path?: string, options?: SearchOptions): Observable; get(path: string, expand?: string[]): Observable; items(path: string, page?: number): Observable<{ items: Resource[]; page: number; page_size: number; total: number; }>; move(sourcePath: string, targetPath: string): Observable; moveTo(sourcePath: string, targetPath: string): Observable; transition(contextPath: string, transition: T, options?: WorkflowTransitionOptions): Observable>; workflow(contextPath: string): Observable>; update(path: string, model: any): Observable; save(path: string, model: any): Observable; navigation(): Observable; breadcrumbs(path: string): Observable; type(typeId: string, containerPath?: string): Observable; vocabulary(vocabularyId: string): Observable>; getAddons(path: string): Observable; availableAddons(path: string): Observable<{ id: string; title: string; }[]>; addAddon(path: string, addon: string): Observable; deleteAddon(path: string, addon: string): Observable; getBehaviors(path: string): Observable; availableBehaviors(path: string): Observable; addBehavior(path: string, behavior: string): Observable; deleteBehavior(path: string, behavior: string): Observable; addableTypes(path: string): Observable; sharing(path: string): Observable; updateSharing(path: string, sharing: any): Observable; registry(path: string): Observable; declareRegistry(path: string, key: string): Observable; getRegistryEntry(path: string, key: string): Observable; setRegistryEntry(path: string, key: string, value: any): Observable; emittingModified(observable: Observable, path: string): Observable; private linkFromItem; }