import * as FormData from 'form-data'; export type FetcherOptions = { baseUrl?: string; headers?: Record; query?: Record; method?: 'HEAD' | 'GET' | 'POST'; body?: Record | string | FormData | URLSearchParams; returnRaw?: boolean; }; export type DefaultedFetcherOptions = { baseUrl?: string; body?: Record | string | FormData; headers: Record; query: Record; method: 'HEAD' | 'GET' | 'POST'; returnRaw: boolean; }; export type Fetcher = { (url: string, ops: DefaultedFetcherOptions): Promise; }; // this feature has some quality of life features export type UseableFetcher = { (url: string, ops?: FetcherOptions): Promise; };