@blockchain-api/connector-js
Version:
Blockchain Api Connector
10 lines (9 loc) • 794 B
TypeScript
import { ClassConstructor } from "class-transformer";
import FormData from "form-data";
export declare const axios: import("axios").AxiosInstance;
export declare const httpGet: <T>(url: string) => Promise<T>;
export declare const httpPost: <T extends object>(url: string, body?: T | undefined, classType?: ClassConstructor<T> | undefined) => Promise<T>;
export declare const postMultiForm: (url: string, body: FormData) => Promise<any>;
export declare const httpPut: <T extends object>(url: string, body?: T | undefined, classType?: ClassConstructor<T> | undefined) => Promise<T>;
export declare const httpDelete: (url: string) => Promise<void>;
export declare const validateBody: <T extends object>(body?: T | undefined, classType?: ClassConstructor<T> | undefined) => Promise<void>;