UNPKG

hapic

Version:

A http api client based on axios.

28 lines (27 loc) 956 B
import type { ProxyOptions as ProxyOptionsBase } from 'node-fetch-native/proxy'; export declare const File: { new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; prototype: File; }; export declare const FormData: { new (form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; prototype: FormData; }; export declare const AbortController: { new (): AbortController; prototype: AbortController; }; export declare const fetch: typeof globalThis.fetch; export declare const Headers: { new (init?: HeadersInit): Headers; prototype: Headers; }; export declare const Blob: { new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; prototype: Blob; }; export type ProxyOptions = ProxyOptionsBase; export declare function createProxy(options?: ProxyOptions): { agent: import("http").Agent | import("https").Agent | undefined; dispatcher: undici.Dispatcher | undefined; };