export type GetUrlFn = (url: string) => string | Promise; export type XhrRequest = (input: RequestInfo, init?: RequestInit) => Promise;