/** * Check if the provided file type should be accepted by the input with accept attribute. * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#attr-accept * * Inspired by https://github.com/enyo/dropzone * * @param file {File} https://developer.mozilla.org/en-US/docs/Web/API/File * @param acceptedFiles {string|string[]} * @returns {boolean} */ export default function attrAccept(file: File, acceptedFiles: string | Array): boolean;