import { ChangeEvent } from 'react'; import type { AttachmentPreviewItem } from '../AttachmentPreview/AttachmentPreview.types'; export type UploadedAttachment = { url: string; name: string; size?: number; }; type UseAttachmentUploadOptions = { value: UploadedAttachment[]; onChange: (attachments: UploadedAttachment[]) => void; onError?: (message: string | null) => void; maxSizeBytes?: number; maxFiles?: number; /** Mirrors the file input's `accept`; also gates drag-and-drop. */ accept?: string; }; export declare const DEFAULT_MAX_ATTACHMENTS = 10; export declare const useAttachmentUpload: ({ value, onChange, onError, maxSizeBytes, maxFiles, accept, }: UseAttachmentUploadOptions) => { items: AttachmentPreviewItem[]; fileInputRef: import("react").RefObject; openFileDialog: () => void | undefined; handleFileSelect: (event: ChangeEvent) => void; addFiles: (files: File[]) => void; addLinkedImage: (url: string) => void; addStoredFiles: (files: { fileName: string; size?: number; }[]) => Promise; removeAttachment: (id: AttachmentPreviewItem['id']) => void; handleRetry: (id: AttachmentPreviewItem['id']) => void; reorderAttachments: (orderedIds: AttachmentPreviewItem['id'][]) => void; clearAttachments: () => void; isUploading: boolean; error: string | null; count: number; isFull: boolean; maxFiles: number; }; export {}; //# sourceMappingURL=useAttachmentUpload.d.ts.map