import { AttachmentApi } from '../types/attachmentApi'; import { MutableRefObject } from 'react'; import { Attachment } from '../model/attachment'; import { ApiAttachmentModel } from '../model/apiAttachmentModel'; export type HandleSubmit = { extract(): Promise; }; export interface UseDataTransfer { onRemove: (file: Attachment) => void; onDownload: (file: Attachment) => void; onPreview: (file: Attachment) => string | null; } export declare function useAttachmentDataHandler(api: AttachmentApi, handleSubmit: MutableRefObject): { apiFiles: ApiAttachmentModel[]; toUploadFiles: File[]; onRemove: (file: Attachment) => void; onPreview: (file: Attachment) => string | null; onDownload: (file: Attachment) => void; addFiles: (files: FileList) => void; clearFiles: () => void; };