export type JuiceFetchProps = { url: string; method?: "GET" | "POST"; headers?: Record; timeout?: number; body?: string; }; /** * Fetch a JSON resource from a URL. * * @remarks This function will throw an error if the request fails or times out. * * @example * ```ts * const metadata = await juiceFetch({ * url: ipfsUrl, * timeout: args?.requestTimeout ?? REQUEST_TIMEOUT_MS, * }); * ``` * * @throws If the request fails or times out. * * @returns The JSON resource at the given URL. */ export declare const juiceFetch: (props: JuiceFetchProps) => Promise; //# sourceMappingURL=juiceFetch.d.ts.map