/** * @since 0.0.1 */ import type { Either } from "fp-ts/Either"; import { Body } from "./Body.js"; import { HttpError } from "./internal/error.js"; import { HttpResponseEither } from "./internal/response/index.js"; /** * @since 0.0.1 * @category model */ export type Init = RequestInit | (Omit & { body?: Body | BodyInit; }) | Body; /** * @since 0.0.1 * @category model */ export interface Adapter { (url: string | URL, init?: RequestInit): Promise>; } /** * @since 0.0.1 * @category model */ export type Fetch = (...args: Parameters) => Promise>; /** * @since 0.0.1 * @category constructor */ export declare const fetch: (fetch: Fetch) => (url: string | URL, init?: RequestInit | undefined) => Promise>; /** * @since 0.0.1 * @category constructor */ export declare const fetch_: (fetch: Fetch) => (url: string | URL, init?: RequestInit) => Promise>;