@tatumio/tatum-v1
Version:
Tatum API client allows browsers and Node.js clients to interact with Tatum API.
10 lines (9 loc) • 792 B
TypeScript
import FormData from 'form-data';
import { ClassConstructor } from "class-transformer/types/interfaces";
export declare const axios: import("axios").AxiosInstance;
export declare const get: <T>(url: string) => Promise<T>;
export declare const post: <T extends object, U, V>(url: string, body?: U | undefined, classType?: ClassConstructor<T> | undefined) => Promise<V>;
export declare const postMultiForm: (url: string, body: FormData) => Promise<any>;
export declare const put: <T extends object, U, V>(url: string, body?: U | undefined, classType?: ClassConstructor<T> | undefined) => Promise<V>;
export declare const httpDelete: (url: string) => Promise<void>;
export declare const validateBody: <T extends object, U>(body: U, classType?: ClassConstructor<T> | undefined) => Promise<void>;