import { Connection } from "@salesforce/core";
import { FetchOptions } from 'make-fetch-happen';
export declare class FileDownloader {
    conn: Connection;
    downloadUrl: string;
    outputFile: string | null;
    fetchOptions: any;
    label: string;
    constructor(downloadUrl: string, options: {
        conn?: any;
        outputFile?: string;
        fetchOptions?: FetchOptions;
        label?: 'url' | 'file' | 'both';
    });
    download(): Promise<{
        success: boolean;
        outputFile: string;
        error?: any;
    }>;
}
