import { FileDownloadLocation, FileDownloadParameters, ITelegramClient } from '@mtcute/core'; /** * Download a remote file to a local file (only for NodeJS). * Promise will resolve once the download is complete. * * @param filename Local file name to which the remote file will be downloaded * @param params File download parameters */ export declare function downloadToFile(client: ITelegramClient, filename: string, location: FileDownloadLocation, params?: FileDownloadParameters): Promise;