import { FileWithPath } from "react-dropzone"; //#region src/molecules/FileProgress/FileProgress.types.d.ts interface FileProgressBaseProps { onDelete?: () => Promise | void; file: FileWithPath | File; onCancel?: () => void; isError?: boolean; isDone?: boolean; } type DoneFileProgress = FileProgressBaseProps & { isDone: true; indeterminate?: undefined; progressPercent?: undefined; }; type ProgressPercentFileProgress = FileProgressBaseProps & { progressPercent: number; indeterminate?: false; }; type IndeterminateFileProgress = FileProgressBaseProps & { progressPercent?: undefined; indeterminate: true; }; type FileProgressBase = ProgressPercentFileProgress | IndeterminateFileProgress | DoneFileProgress; type RegularFileProgressBaseProps = FileProgressBase & { compact?: false; fullErrorText?: string; customLoadingText?: string; customCompleteText?: string; onRetry?: () => void; }; type CompactFileProgressBaseProps = FileProgressBase & { compact: true; shortErrorText?: string; fullErrorText?: string; }; type FileProgressProps = RegularFileProgressBaseProps | CompactFileProgressBaseProps; //#endregion export { FileProgressProps };