export interface HttpRequest { url: string; method?: HttpRequestMethod; payload?: PayloadType; headers?: Record; asForm?: boolean; } export interface HttpResponse { status: number; payload: PayloadType; } export declare enum HttpRequestMethod { GET = "GET", POST = "POST" } export interface HttpClient { sendRequest(request: HttpRequest): (Promise>); }