/** * @since 0.0.1 */ import { Either } from "fp-ts/Either"; /** * @since 0.2.0 * @category combinator */ export declare const andThen: { (fn: (self: A) => Promise>): (response: Either) => Promise>; (response: Either, fn: (self: A) => Promise>): Promise>; (fn: (self: A) => Either): (response: Either) => Either; (response: Either, fn: (self: A) => Either): Either; (fn: (self: A) => B): (response: Either) => Either; (response: Either, fn: (self: A) => B): Either; }; /** * **Example** * * ```ts * import * as Http from "fetch-prime/Fetch"; * import { url } from "fetch-prime/Function"; * import adapter from "fetch-prime/Adapters/Platform"; * * const fetch = Http.fetch(adapter); * * fetch(url("https://reqres.in/api/users/{id}", { id: 2 })) * ``` * * @since 0.3.0 * @category combinator */ export declare const url: (template: string, variables: object) => string;