amis-rpc-design/node_modules/@react-native-community/cli-tools/build/fetch.d.ts
2023-10-07 19:42:30 +08:00

13 lines
438 B
TypeScript

import { RequestInit as FetchOptions, Request, Headers } from 'node-fetch';
/**
* Downloads the given `url` to the OS's temp folder and
* returns the path to it.
*/
declare const fetchToTemp: (url: string) => Promise<string>;
declare const fetch: (url: string | Request, options?: FetchOptions) => Promise<{
status: number;
data: any;
headers: Headers;
}>;
export { fetch, fetchToTemp };
//# sourceMappingURL=fetch.d.ts.map