declare type DownloadParameters = {
    port: number;
    ip: string;
    path: string;
    timeout_ms: number;
} & ({
    protocol: "http";
} | {
    protocol: "https";
    reject_unauthorized: boolean;
});
export declare function download(pars: DownloadParameters): Promise<string>;
export declare function download_json(pars: DownloadParameters): Promise<any>;
export {};
