import React from "react";

interface FileObject {
  url: string;
  size?: number;
  name: string;
}
export interface FileUploadProps {
  className?: string;
  allowedFileTypes?: string;
  multipleFilesAllowed?: boolean;
  maxFileSize?: number;
  hasFileSizeLimit?: boolean;
  isPreview?: boolean;
  minFileSize?: number;
  files?: FileObject[];
  onChange?: (files: FileObject[] | []) => void;
  error?: string;
  setError?: (error: string) => void;
  setTouched?: (touched: boolean) => void;
}

export interface FormikFileUploadProps extends FileUploadProps {
  name: string;
}

const FileUpload: React.FC<FileUploadProps>;
const FormikFileUpload: React.FC<FormikFileUploadProps>;

export { FileUpload, FormikFileUpload };
