/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { EventEmitter, OnInit } from '@angular/core'; import { Node } from '@alfresco/js-api'; import { VersionListComponent } from './version-list.component'; import { FileUploadErrorEvent } from '../common/events/file.event'; import * as i0 from "@angular/core"; export declare class VersionManagerComponent implements OnInit { private readonly contentService; private readonly nodesApiService; /** Target node to manage version history. */ node: Node; /** New file for updating current version. */ newFileVersion: File; /** Toggles showing/hiding of comments. */ showComments: boolean; /** Toggles showing/hiding the version comparison component. */ showVersionComparison: boolean; /** Enable/disable downloading a version of the current node. */ allowDownload: boolean; /** Toggles showing/hiding of version actions. */ showActions: boolean; /** Enable/disable viewing versions of the current node. */ allowViewVersions: boolean; /** Enable/disable deletion of version */ allowVersionDelete: boolean; /** Emitted when a file is uploaded successfully. */ uploadSuccess: EventEmitter; /** Emitted when an error occurs during upload. */ uploadError: EventEmitter; /** Emitted when an cancelling during upload. */ uploadCancel: EventEmitter; /** Emitted when viewing a version. */ viewVersion: EventEmitter; versionListComponent: VersionListComponent; uploadState: string; ngOnInit(): void; refresh(node: Node): void; onUploadSuccess(event: any): void; onUploadError(event: FileUploadErrorEvent): void; onUploadCancel(): void; onViewVersion(versionId: string): void; toggleNewVersion(): void; canUpdate(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }