import { OnInit } from '@angular/core'; import { ManagedFileUpload } from '../managed-file-upload'; import * as i0 from "@angular/core"; export declare class FileTransferComponent implements OnInit { /** * The file transfer to display. */ transfer: ManagedFileUpload; constructor(); ngOnInit(): void; /** * Returns the unit string that is most appropriate for the * number of bytes transferred thus far - either 'GB', 'MB', 'KB', * or 'B'. * * @returns {String} * The unit string that is most appropriate for the number of * bytes transferred thus far. */ getProgressUnit(): "GB" | "MB" | "KB" | "B"; /** * Returns the amount of data transferred thus far, in the units * returned by getProgressUnit(). * * @returns {Number} * The amount of data transferred thus far, in the units * returned by getProgressUnit(). */ getProgressValue(): string | number; /** * Returns the percentage of bytes transferred thus far, if the * overall length of the file is known. * * @returns {Number} * The percentage of bytes transferred thus far, if the * overall length of the file is known. */ getPercentDone(): number; /** * Determines whether the associated file transfer is in progress. * * @returns {Boolean} * true if the file transfer is in progress, false othherwise. */ isInProgress(): boolean; /** * Returns whether an error has occurred. If an error has occurred, * the transfer is no longer active, and the text of the error can * be read from getErrorText(). * * @returns {Boolean} * true if an error has occurred during transfer, false * otherwise. */ hasError(): boolean; /** * Returns the text of the current error as a translation string. * * @returns {String} * The name of the translation string containing the text * associated with the current error. */ getErrorText(): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }