import './attachmentContainer.scss'; import { JSXElementConstructor, MutableRefObject } from 'react'; import { AttachmentCustomButtons, AttachmentCustomItem } from '../attachmentItem/attachmentItem'; import { AttachmentApi } from '../../types/attachmentApi'; import { ExtractApiData } from '../../hooks/useExtractApiData'; export type WithAttachmentItems = { showAttachedFiles: true; } & (AttachmentCustomButtons | AttachmentCustomItem); export type NoAttachmentItems = { hideAttachedItems: true; }; export type BaseAttachmentContainerProps = { filesAmount?: number; fileSize?: number; fileType?: string[]; customDragComponent?: JSX.Element | null; uploadComponent?: JSXElementConstructor; attachmentApi: AttachmentApi; handleSubmit: MutableRefObject; initialFiles?: File[]; className?: string; disableDragAndDrop?: boolean; }; export type AttachmentContainerProps = BaseAttachmentContainerProps & (WithAttachmentItems | NoAttachmentItems); export declare function AttachmentContainer(props: AttachmentContainerProps): JSX.Element; export type UploadComponentProps = { handleUploadClick: () => void; className?: string; };