export declare enum HttpMethod { GET = "GET", POST = "POST", PUT = "PUT", DELETE = "DELETE", PATCH = "PATCH" } export declare function httpRequest(url: string, method: HttpMethod, body?: Record, headers?: Record): Promise; export declare function post(url: string, body?: Record, headers?: Record): Promise; export declare function get(url: string, headers?: Record): Promise; export interface FetchResponse { data: any; errorCode: number | null; error: string | null; }