import { WorkspaceElement, WorkspaceVisibility } from '@edifice.io/client'; /** * Snapshot of a source file taken at upload time, so the upload result can be * re-ordered later on against the original file metadata. */ export interface UploadSourceFileInfo { /** Original file name. */ name: string; /** `File.lastModified` of the source file (ms since epoch). */ lastModified: number; } declare const useUploadFiles: ({ handleOnChange, visibility, application, }: { handleOnChange: (uploadedFiles: WorkspaceElement[], sourceFilesInfo: Record) => void; visibility?: WorkspaceVisibility; application?: string; }) => { /** List of files added from device */ files: File[]; getUploadStatus: (upload: File | Blob) => import('../..').Status | undefined; clearUploadStatus: (blob: File | Blob) => void; uploadedFiles: WorkspaceElement[]; editingImage: WorkspaceElement | undefined; setEditingImage: import('react').Dispatch>; getUrl: (resource?: WorkspaceElement, timestamp?: boolean) => string; updateImage: ({ blob, legend, altText: alt, }: { blob: Blob; legend: string; altText: string; }) => Promise; uploadFile: (file: File, metadata?: { duration: number; }) => Promise; removeFile: (file: File) => Promise; }; export default useUploadFiles;