declare class FileHelper { /** * Ensures that a directory exists. If the directory does not exist, it will be created recursively. * * @param {string} directory - The path of the directory to ensure. * @return {Promise} A promise that resolves when the directory is ensured. */ static ensureDir(directory: string): Promise; /** * Returns the file name from a given URL. * * @param {string} url - The URL from which to extract the file name. * @return {string | undefined} The extracted file name, or undefined if the URL does not contain a file name. */ static getFileName(url: string): string | undefined; } export { FileHelper };