UNPKG

438 BTypeScriptView Raw
1import { RequestInit as FetchOptions, Request, Headers } from 'node-fetch';
2/**
3 * Downloads the given `url` to the OS's temp folder and
4 * returns the path to it.
5 */
6declare const fetchToTemp: (url: string) => Promise<string>;
7declare const fetch: (url: string | Request, options?: FetchOptions) => Promise<{
8 status: number;
9 data: any;
10 headers: Headers;
11}>;
12export { fetch, fetchToTemp };
13//# sourceMappingURL=fetch.d.ts.map
\No newline at end of file