import { RequestInit } from 'node-fetch';
export declare type Fetch = <T>(url: string, params?: HttpParams) => Promise<T>;
export declare enum HttpMethod {
    POST = "POST",
    GET = "GET"
}
export declare const fetchFrom: <T>(url: string, params?: HttpParams | undefined) => Promise<T>;
export declare type HttpParams = {
    args?: RequestInit;
    method?: HttpMethod;
    body?: any;
};
