import { IDownloader, DownloadProgress } from './Downloader'; export interface FileDownloaderProps { /** * The URL to download */ url: string; /** * The render function that will render when the content is downloaded * @returns {JSX.Element} */ renderContent: (content: string) => JSX.Element; /** * An optional function to render progress (defaults to basic text display of progress) * @param {DownloadProgress} progress * @returns {JSX.Element} */ renderProgress?: (progress: DownloadProgress) => JSX.Element; /** * An optional function to render errors (defaults to basic text display of errors) * @param {string} msg * @param {Error} error * @returns {JSX.Element} */ renderError?: (msg: string, error?: Error) => JSX.Element; /** * A : map for Downloader Component */ protocolHandlers: { [key: string]: IDownloader; }; } export declare const FileDownloader: (props: FileDownloaderProps) => JSX.Element;