import { DownloadResponse } from '../@types/index.js'; /** * Triggers a file download from the specified URL when called from a browser context. * @param {string} url - The URL of the file to download * @returns {Promise} - A Promise that resolves when the file has been downloaded */ export declare function downloadFileBrowser(url: string): void; /** * Downloads a file from a URL, or passes through an already-collected DownloadResponse * (returned by P2P transport). * @param {string | DownloadResponse} urlOrData - HTTP URL or pre-collected P2P response * @param {number} [index] - The file index, used as fallback filename for URL downloads * @returns {Promise} */ export declare function downloadFile(urlOrData: string | DownloadResponse, index?: number): Promise;