/** * Get the MIME type inferred from the extension at the end of the URL. * @param {string} url URL string. * @return {string|null} MIME type inferred from the filename in the URL. * @example * ```js * import {utils} from 'metronic-extension'; * * utils.url2Mime('https://example.com/sample.js');// -> application/javascript * utils.url2Mime('https://example.com/sample.json');// -> application/json * utils.url2Mime('https://example.com/sample.txt');// -> text/plain * utils.url2Mime('https://example.com/sample.jpg');// -> image/jpeg * utils.url2Mime('https://example.com/dir/sample.txt');// -> text/plain * ``` */ declare const _default: (url: string) => string | null; export default _default;