/// import http from 'http'; import type stream from 'stream'; export declare function dataUrlToBase64(dataUrl: string): string; /** * Get http headers for specific `url` * follow 302 redirection for max `REDIRECT_TTL` times. * * @credit https://stackoverflow.com/a/43632171/1123955 */ export declare function httpHeadHeader(url: string): Promise; export declare function httpHeaderToFileName(headers: http.IncomingHttpHeaders): null | string; export declare function httpStream(url: string, headers?: http.OutgoingHttpHeaders): Promise; export declare function streamToBuffer(stream: stream.Readable): Promise; //# sourceMappingURL=misc.d.ts.map