import { Response, HeadersInit } from 'node-fetch'; export interface APIRequestOptions { method?: RequestMethod; body?: unknown; headers?: HeadersInit; timeout?: number; } export declare enum RequestMethod { Delete = "DELETE", Get = "GET", Patch = "PATCH", Post = "POST", Put = "PUT" } export declare class APIRequest { path: string; body?: unknown; headers?: HeadersInit; method: RequestMethod; retries: number; timeout: number; constructor(path: string, { method, headers, body, timeout }?: APIRequestOptions); execute(): Promise; }