import type Cache from './Cache.js'; import { type Logger } from './Logger.js'; export declare enum FetchMethod { GET = "GET", POST = "POST", HEAD = "HEAD" } export interface FetcherParams { cookie?: string | null; cache: Cache; logger: Logger; } export default class Fetcher { #private; constructor(params: FetcherParams); setCookie(value?: string | null): void; setPuppeteerExecutablePath(path: string): void; get cookie(): string | null | undefined; fetch(url: string, jsonResponse: false, method: FetchMethod.HEAD, payload?: undefined, requireCookie?: boolean): Promise<{ ok: boolean; status: number; }>; fetch(url: string, jsonResponse: true, method?: FetchMethod, payload?: Record, requireCookie?: boolean): Promise; fetch(url: string, jsonResponse?: boolean, method?: FetchMethod, payload?: Record, requireCookie?: boolean): Promise; } export declare class FetchError extends Error { code?: number; constructor(payload: any); } //# sourceMappingURL=Fetcher.d.ts.map