UNPKG

@maximai/maxim-js

Version:

Maxim AI JS SDK. Visit https://getmaxim.ai for more info.

21 lines (20 loc) 687 B
import { AxiosInstance } from "axios"; export declare class MaximAPI { private apiKey; protected axiosInstance: AxiosInstance; protected isDebug: boolean | undefined; private activeControllers; constructor(baseUrl: string, apiKey: string, isDebug?: boolean); protected fetch<T>(relativeUrl: string, { method, headers, body, responseType, }?: { method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; headers?: { [key: string]: string; }; body?: string; responseType?: "json" | "text"; }): Promise<T>; /** * Destroys the HTTP and HTTPS agents, closing all sockets */ destroyAgents(): void; }