import http from 'https'; import type { FetcherResponse } from "../common"; export declare namespace fetcher { /** * http get request * @param uri API uri * @param headers custom http header in request * @returns api response data and status * @throws network error, stream 'error' events. */ const get: (uri: string, headers?: NonNullable) => Promise>; /** * http post request * @param uri API uri * @param body a data that client send to server * @param headers custom http header in request * @returns api response data and status * @throws network error, stream 'error' events. */ const post: (uri: string, body: object | string, headers?: NonNullable) => Promise>; }