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