import type { Immutable } from '~/models/immutable'; type RequestOptions = { method?: string; headers?: Record; }; type RequestPayload = { json: () => Promise; text: () => Promise; }; export type IFetcher = (url: string, options?: Immutable) => Promise>;