export type HttpMethod = "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | "PURGE" | "LINK" | "UNLINK"; export type FetchConfig = { url: string; method?: HttpMethod; headers?: Record; data?: object | FormData; [key: string]: unknown; }; export type FetchFunc = (config: FetchConfig) => Promise;