/** fetch handler function */ export type FetchHandler = (pathname: string, init: RequestInit) => Promise; /** fetch handler in an object */ export interface FetchHandlerObject { handle(this: FetchHandlerObject, pathname: string, init: RequestInit): Promise; } export declare const buildFetchHandler: (handler: FetchHandler | FetchHandlerObject) => FetchHandler; export interface SimpleFetchHandlerOptions { service: string | URL; fetch?: typeof globalThis.fetch; } export declare const simpleFetchHandler: ({ service, fetch: _fetch, }: SimpleFetchHandlerOptions) => FetchHandler;