import { OnInit, EventEmitter, TemplateRef } from '@angular/core'; import { DocumentFile } from '../models/document-file.model'; import { FileUploadOptions } from '../models/uploader-options.model'; import { FormControl } from '@angular/forms'; import * as i0 from "@angular/core"; export declare class MukFileUploaderComponent implements OnInit { controller: FormControl; styleHeight?: string | undefined; styleWidth?: number; optionsFile: FileUploadOptions; isMultiple?: boolean; label: string; isSelected: boolean; isRequired: boolean; className: string; selectedEditableFiles: any[]; content: TemplateRef | null; onSelectedFiles: EventEmitter; removeSelectedFile: EventEmitter; removeUploadedFile: EventEmitter; selectedFiles: File[]; allowedSelectedFilesLimit: boolean; allowedFileSize: boolean; allowedFilesSize: boolean; allowedFileType: boolean; fileNotDuplicated: boolean; activeFile?: DocumentFile; isDraggedOver: boolean; constructor(); ngOnInit(): void; onHandleFileInput(e: any): void; /** * The function `handleOptionsValidity` checks the validity of various options related to a file and * returns a boolean value indicating if all the checks pass. * @param {File} file - The `file` parameter represents the file that needs to be validated. * @returns The method `handleOptionsValidity` returns a boolean value. */ handleOptionsValidity(file: File): boolean; /** * The function checks if the number of uploaded files and selected files is less than the maximum * files limit specified in the options. * @returns a boolean value. */ checkSelectedFilesLimit(): boolean; /** * The function "checkFileSize" checks if the size of a given file is within the maximum file size * limit specified in the options. * @param {File} file - The `file` parameter is of type `File`, which represents a file selected by * the user. * @returns a boolean value. */ checkFileSize(file: File): boolean; /** * The function checks if the total size of uploaded files, including the current file, is within the * maximum allowed size. * @param {File} file - The `file` parameter is of type `File`, which represents a file selected by * the user for uploading. * @returns a boolean value. */ checkFilesSize(file: File): boolean; /** * The function `checkFileType` checks if the file's extension is included in the allowed extensions * specified in the options. * @param {File} file - The `file` parameter is of type `File`, which represents a file selected by * the user. * @returns a boolean value. */ checkFileType(file: File): boolean; /** * The function checks if a given file already exists in an array of uploaded files based on its name, * size, and last modified date. * @param {File} file - The `file` parameter is of type `File`, which represents a file selected by * the user in a file input field. It contains information about the file such as its name, size, and * last modified date. * @returns a boolean value. */ checkFileExistence(file: File): boolean; /** * The function resets all validation flags to true. */ resetValidations(): void; /** * The function onDeleteSelectedFile removes a specified file from the slectedFiles array and emits * the updated files list. * @param {File} - The parameter is of type File, which represents a file selected by the * user for uploading. */ onDeleteSelectedFile($file: File): void; onWindowDragOver(event: DragEvent): void; onWindowDrop(event: DragEvent): void; onDragOver(event: Event): void; onDragLeave(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }