import { ITelegramClient } from '../../client.types.js';
import { FileDownloadLocation, FileDownloadParameters } from '../../types/index.js';
/**
 * Download a file and return its contents as a Buffer.
 *
 * > **Note**: This method _will_ download the entire file
 * > into memory at once. This might cause an issue, so use wisely!
 *
 * @param params  File download parameters
 */
export declare function downloadAsBuffer(client: ITelegramClient, location: FileDownloadLocation, params?: FileDownloadParameters): Promise<Uint8Array>;
