/**
 * Sends an HTTP request.
 */
export declare const http: <TBody, TResponse>(url: string, { method, body, headers, }: {
    method: "GET" | "POST";
    body?: TBody | undefined;
    headers?: Record<string, string> | undefined;
}) => Promise<TResponse>;
export declare function httpStreamText<TBody>(verb: "POST", url: string, body: TBody): AsyncIterableIterator<string>;
export declare function httpStreamJson<TBody, TResponse>(url: string, { method, body, headers, }: {
    method: "POST";
    body: TBody;
    headers?: Record<string, string>;
}): AsyncIterableIterator<TResponse>;
//# sourceMappingURL=helpers.d.ts.map