import type { ProxyConfig } from "./proxies.js"; export interface HttpResponse { statusCode: number; headers: Record; text(): Promise; json(): Promise; } export interface HttpClient { get(url: string): Promise; postJson(url: string, body: unknown): Promise; setCookie(name: string, value: string, domain?: string): void; } export declare class DefaultHttpClient implements HttpClient { private readonly proxyConfig?; private readonly cookies; private readonly defaultHeaders; constructor(proxyConfig?: ProxyConfig | undefined); setCookie(name: string, value: string): void; get(url: string): Promise; postJson(url: string, body: unknown): Promise; private buildCookieHeader; private request; }