export type DownloadOptions = {
    path?: string;
    cwd?: string;
    hashType?: string | null;
    hashSum?: string;
};
type AnyStream = NodeJS.WritableStream | NodeJS.ReadWriteStream;
export declare function downloadToStream(url: string, stream: AnyStream, hashType: string | null | undefined): Promise<string | null>;
export declare function downloadToString(url: string): Promise<string>;
export declare function downloadFile(url: string, opts: string | DownloadOptions): Promise<string | null>;
export declare function downloadTgz(url: string, opts: string | DownloadOptions): Promise<string | null>;
export declare function downloadZip(url: string, opts: string | DownloadOptions): Promise<string | null>;
export {};
//# sourceMappingURL=download.d.ts.map