import { MatDialog } from '@angular/material/dialog'; import { Observable, Subject } from 'rxjs'; import { ThumbnailService, TranslationService } from '@alfresco/adf-core'; import { AlfrescoApiService, DocumentListService, NodeAction, ContentService } from '@alfresco/adf-content-services'; import { NodeEntry, Node, NodeChildAssociationPaging, NodeChildAssociationEntry, NodesApi } from '@alfresco/js-api'; import { ContentApiService } from '@alfresco/aca-shared'; import * as i0 from "@angular/core"; type BatchOperationType = Extract; export declare class NodeActionsService { private contentService; private contentApi; private dialog; private documentListService; private apiService; private translation; private thumbnailService; contentCopied: Subject; contentMoved: Subject; moveDeletedEntries: any[]; isSitesDestinationAvailable: boolean; _nodesApi: NodesApi; get nodesApi(): NodesApi; constructor(contentService: ContentService, contentApi: ContentApiService, dialog: MatDialog, documentListService: DocumentListService, apiService: AlfrescoApiService, translation: TranslationService, thumbnailService: ThumbnailService); /** * Copy node list * * @param contentEntities nodes to copy * @param permission permission which is needed to apply the action * @param focusedElementOnCloseSelector element's selector which should be autofocused after closing modal */ copyNodes(contentEntities: any[], permission?: string, focusedElementOnCloseSelector?: string): Subject; /** * Move node list * * @param contentEntities nodes to move * @param permission permission which is needed to apply the action * @param focusedElementOnCloseSelector element's selector which should be autofocused after closing modal */ moveNodes(contentEntities: any[], permission?: string, focusedElementOnCloseSelector?: string): Subject; /** * General method for performing the given operation (copy|move) to multiple nodes * * @param action the action to perform (copy|move) * @param contentEntities the contentEntities which have to have the action performed on * @param permission permission which is needed to apply the action * @param focusedElementOnCloseSelector element's selector which should be autofocused after closing modal */ doBatchOperation(action: BatchOperationType, contentEntities: any[], permission?: string, focusedElementOnCloseSelector?: string): Subject; isEntryEntitiesArray(contentEntities: any[]): boolean; checkPermission(action: BatchOperationType, contentEntities: any[], permission?: string): boolean; getEntryParentId(nodeEntry: Node): string; getContentNodeSelection(action: NodeAction, contentEntities: NodeEntry[], focusedElementOnCloseSelector?: string): Subject; getTitleTranslation(action: string, nodes?: NodeEntry[]): string; private canCopyMoveInsideIt; private hasEntityCreatePermission; private isSite; close(): void; private customizeBreadcrumb; private normalizeSitePath; isSiteContainer(node: Node): boolean; copyNodeAction(nodeEntry: any, selectionId: string): Observable; copyContentAction(contentEntry: any, selectionId: string, oldName?: string): Observable; copyFolderAction(contentEntry: any, selectionId: string): Observable; moveNodeAction(nodeEntry: any, selectionId: string): Observable; moveFolderAction(contentEntry: any, selectionId: string): Observable; moveContentAction(contentEntry: any, selectionId: string): Observable; getChildByName(parentId: string, name: string): Subject; private isActionAllowed; private rowFilter; private imageResolver; getNewNameFrom(name: string, baseName?: string): string; /** * Get children nodes of given parent node * * @param nodeId The id of the parent node * @param params optional parameters */ getNodeChildren(nodeId: string, params?: any): 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 */ copyNode(nodeId: string, targetParentId: string, name?: string): Observable; flatten(nDimArray: any[]): any[]; processResponse(data: any): any; private focusAfterClose; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {};