import { Signal } from '@angular/core'; import { TransferInterface } from '../interfaces/transfer.interface'; import { FileManagerOptionsInterface } from '../interfaces/file-manager-options.interface'; import { FileManagerInterface } from '../interfaces/file-manager.interface'; import { ProgressDetail } from '../interfaces/progress-detail.interface'; import { FileObject } from './file-object.class'; export declare class FileManager implements FileManagerInterface { options: FileManagerOptionsInterface; private _id; private _protocol; private _uploader; private _fileElement; private _file; private _progressSignal; private _speedSignal; private _isUploading; private _isUploaded; private _isSuccess; private _isCancel; private _isError; private _imageLoad; private _fileActive; private _response; set protocol(_protocol: any); get id(): string; readonly progressPercent: Signal; readonly progressDetail: Signal; get progressValue(): number; get element(): any; get object(): FileObject; get name(): string; get type(): string; get date(): Date | null; get size(): number | null; get inQueue(): boolean; get response(): any; get success(): boolean; get error(): boolean; /** * Creates an instance of FileManager. * * @memberOf FileManager */ constructor(file: any, options?: FileManagerOptionsInterface, uploader?: TransferInterface); /** * Bind uploader to FileManager * * @memberOf FileManager */ bindUploader(uploader: TransferInterface): void; /** * Bind options to FileManager * * @memberOf FileManager */ bindOptions(options: FileManagerOptionsInterface): void; /** * Return uploader if exists else throw error * * @memberOf FileManager */ getUploader(): TransferInterface; /** * Start uploading this file * * * @memberOf FileManager */ upload(): void; /** * Cancel upload process from this file * * * @memberOf FileManager */ cancel(): void; _cancel(): void; /** * Remove this FileManger from uploader queue * * * @memberOf FileManager */ remove(): void; isUploaded(): boolean; isUploading(): boolean; canUpload(): boolean; handleImageLoad(): void; /** * Overwrite functions */ onBeforeUpload(): void; onProgressSpeed(_speed: ProgressDetail): void; onProgress(_progress: number): void; onSuccess(_response: any, _status: number, _headers: any): void; onError(_response: any, _status: number, _headers: any): void; /** * Internal functions */ _onBeforeUpload(): void; _onProgressFileSpeed(speed: ProgressDetail): void; _onProgress(progress: number): void; _onSuccess(response: any, status: number, headers: any): void; _onError(response: any, status: number, headers: any): void; private _setFileActive; }