/** * Downloads a file from the specified URI and saves it with the given filename. * * @param uri - The URI of the file to download. * @param filename - The name to save the downloaded file as. Defaults to "current.csv". * * @remarks * This function uses the Fetch API to retrieve the file as a blob and creates a temporary * anchor element to trigger the download in the browser. It also handles cleanup by * removing the temporary anchor element after the download is triggered. * * @throws Will log an error to the console if the fetch operation fails. */ declare const downloadFromUri: (uri: string, filename?: string) => Promise; export default downloadFromUri;