import { OnInit, OnChanges, ElementRef, EventEmitter } from '@angular/core'; import { NgxFfmService } from '../../ngx-ffm.service'; import { Files } from '../../models/file'; import { MatDialog } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; export declare class FileActionsComponent implements OnInit, OnChanges { ngxFfmService: NgxFfmService; dialog: MatDialog; snackBar: MatSnackBar; inputFile: ElementRef; uploadFileName: string; fileInput: Files; output: EventEmitter; error: string; errorMessage: string; load: boolean; file: Files; base64: any; base64Data: any; arrDocuments: any[]; arrDocumentsCopy: any[]; openableExtensions: string[]; arrSelectedDocuments: any[]; uploadResponse: { status: string; message: string; filePath: string; }; hasInput: boolean; arrAllowedExtensions: string[]; arrSelectedImages: any[]; arrSelectedPDF: any[]; constructor(ngxFfmService: NgxFfmService, dialog: MatDialog, snackBar: MatSnackBar); ngOnInit(): void; ngOnChanges(): void; /** * Download selected documents. (File.arrSelected) */ btnDownloadDocument_Click(): Promise; /** * Delete selected documents. (File.arrSelected) */ btnDeleteDoc_Click(): void; /** * Gets the file data and calls upload and preview. * @param event Upload data. */ onFileChange(event: any): Promise; uploadPDF(files: any): any; createPreview(array: any): Promise; imgLoad(array: any, result?: any): void; /** * Loads the content of the given directory. * @param filePath Path. */ loadDocuments(filePath: any): Promise; /** * Calls backend post document function. * @param array File array. */ uploadFile(array: any): void; openSnackBar(message: string, action: string): void; openDocument(row: any): void; b64toBlob(dataURI: any, type: any): Blob; }