import type { RequiredWith } from "../_util/type"; import type { InternalFile, UploadFile } from './interface'; export declare function getUid(): string; export declare function fillUid(file: InternalFile): InternalFile; export declare const attrAccept: (file: InternalFile, acceptedFiles?: string | string[]) => boolean; interface InternalDataTransferItem extends DataTransferItem { isFile: boolean; file: (cd: (file: InternalFile) => void) => void; createReader: () => any; fullPath: string; isDirectory: boolean; name: string; path: string; } export declare const traverseFileTree: (files: InternalDataTransferItem[], isAccepted: (file: InternalFile) => boolean) => Promise; export declare function file2Obj(file: InternalFile): RequiredWith; /** Upload fileList. Replace file if exist or just push into it. */ export declare function updateFileList(file: UploadFile, fileList: (UploadFile | Readonly)[]): (UploadFile | Readonly>)[]; export declare function getFileItem(file: InternalFile, fileList: (UploadFile | Readonly)[]): UploadFile | Readonly>; export declare function removeFileItem(file: UploadFile, fileList: (UploadFile | Readonly)[]): (UploadFile | Readonly>)[] | null; export declare const isImageUrl: (file: UploadFile) => boolean; export declare function previewImage(file: File | Blob): Promise; export {};