import { FS } from '../type'; /** Extracts the filename from a URL * @param {string} url * @returns {string} */ export declare function getFileName(url: string): string; export declare function getDir(pathOrUrl: string): string; export declare function join(...paths: string[]): string; /** * Simplifies a given file path by resolving `..` and redundant slashes. * @param path - The input path string. * @returns The simplified path string. */ export declare function simplifyPath(path: string): string; /** Extracts directory from a URL * @param {string} url * @returns {string} */ export declare function urlDirPath(url: string): string; /** Remove Given Prefix from a string if it exists using regex * @param {string} url * @param {string} prefix * @returns {string} */ export declare function removePrefix(url: string, prefix: string): string; /** Utility function to download and write a single file to MuJoCo's virtual filesystem * @param {FS} fileSystem * @param {string} url * @param {string} to */ export declare function downloadFile(fileSystem: FS, url: string, to: string): Promise;