/// <reference types="node" />
/// <reference types="node" />
import http from 'node:http';
import https from 'node:https';
interface Headers {
    [key: string]: string;
}
interface RequestOptions {
    uri: string;
    agent?: https.Agent | http.Agent;
    timeout?: number;
    headers?: Headers;
    fetcher?: <B>(uri: string) => Promise<B>;
}
export declare const request: <B>(options: RequestOptions) => Promise<B>;
export {};
