import { Observable } from 'rxjs'; import { NodePaging, Node, DeletedNodesPaging, PersonEntry, NodeEntry, DiscoveryEntry, FavoritePaging, SharedLinkPaging, SearchRequest, ResultSetPaging, SiteBodyCreate, SiteEntry, FavoriteEntry, NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi, DirectAccessUrlEntry, VersionPaging } from '@alfresco/js-api'; import * as i0 from "@angular/core"; export declare class ContentApiService { private readonly api; private readonly preferences; nodesApi: NodesApi; trashcanApi: TrashcanApi; sharedLinksApi: SharedlinksApi; discoveryApi: DiscoveryApi; favoritesApi: FavoritesApi; contentApi: ContentApi; sitesApi: SitesApi; searchApi: SearchApi; peopleApi: PeopleApi; versionsApi: VersionsApi; /** * Moves a node to the trashcan. * * @param nodeId ID of the target node * @param options Optional parameters supported by JS-API * @returns Empty result that notifies when the deletion is complete */ deleteNode(nodeId: string, options?: { permanent?: boolean; }): Observable; /** * Gets the stored information about a node. * * @param nodeId ID of the target node * @param options Optional parameters supported by JS-API * @returns Node information */ getNode(nodeId: string, options?: any): Observable; getNodeInfo(nodeId: string, options?: any): Observable; /** * Gets the items contained in a folder node. * * @param nodeId ID of the target node * @param options Optional parameters supported by JS-API * @returns List of child items from the folder */ getNodeChildren(nodeId: string, options?: any): Observable; deleteSharedLink(linkId: string): Observable; getDeletedNodes(options?: any): Observable; restoreNode(nodeId: string): Observable; purgeDeletedNode(nodeId: string): Observable; /** * Gets information about a user identified by their username. * * @param personId ID of the target user * @param options Api options * @returns User information */ getPerson(personId: string, options?: { fields?: Array; }): Observable; /** * Copy a node to destination node * * @param nodeId The id of the node to be copied * @param targetParentId The id of the folder-node where the node have to be copied to * @param name The new name for the copy that would be added on the destination folder * @param opts Api options */ copyNode(nodeId: string, targetParentId: string, name?: string, opts?: { include?: Array; fields?: Array; }): Observable; /** * Gets product information for Content Services. * * @returns ProductVersionModel containing product details */ getRepositoryInformation(): Observable; getFavorites(personId: string, opts?: { skipCount?: number; maxItems?: number; where?: string; fields?: Array; }): Observable; getFavoriteLibraries(personId?: string, opts?: any): Observable; findSharedLinks(opts?: any): Observable; getSharedLinkContent(sharedId: string, attachment?: boolean): string; search(request: SearchRequest): Observable; getContentUrl(nodeId: string, attachment?: boolean): string; getVersionContentUrl(nodeId: string, versionId: string, attachment?: boolean): string; deleteSite(siteId?: string, opts?: { permanent?: boolean; }): Observable; leaveSite(siteId?: string): Observable; createSite(siteBody: SiteBodyCreate, opts?: { fields?: Array; skipConfiguration?: boolean; skipAddToFavorites?: boolean; }): Observable; getSite(siteId?: string, opts?: { relations?: Array; fields?: Array; }): Observable; updateLibrary(siteId: string, siteBody: SiteBodyCreate): Observable; addFavorite(nodes: Array): Observable; removeFavorite(nodes: Array): Observable; unlockNode(nodeId: string, opts?: any): Promise; getNodeVersions(nodeId: string, opts?: any): Observable; requestNodeDirectAccessUrl(nodeId: string): Observable; requestVersionDirectAccessUrl(nodeId: string, versionId: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }