import { Middleware } from './middleware.js'; import { HttpRequest } from './request.js'; export type Fetch = typeof fetch; export type Path = string; export interface ClientConfiguration { middleware?: Middleware; fetch?: Fetch; } export type Fetcher = (path: string, options?: Partial

) => Promise; export declare function fetcher(opts?: ClientConfiguration): Fetcher;