import { Object } from "@quenk/noni/lib/data/jsonx"; import { Future } from "@quenk/noni/lib/control/monad/future"; import { Parameters } from "./request/parameters"; import { Host } from "./request/host"; import { Path } from "./request/path"; import { Response } from "./response"; import { Url } from "./url"; import { Agent, Options } from "./agent"; import { Plugin } from "./agent/plugin"; /** * @private */ export declare const splitUrl: (url: Url) => [Host, Path]; export interface CreateAgentOptions { host?: Host; port?: number; plugins?: Plugin[]; } /** * createAgent produces a new default Agent for use in the browser. */ export declare const createAgent: ({ host, port, plugins, }?: CreateAgentOptions) => Agent; /** * get shorthand helper. * * Note that url should consist of the domain and path * combined or the path alone. */ export declare const get: (url: Url, params?: Parameters, options?: Partial) => Future>;