@maximai/maxim-js
Version:
Maxim AI JS SDK. Visit https://getmaxim.ai for more info.
16 lines (15 loc) • 445 B
TypeScript
export declare class MaximAPI {
private baseUrl;
private apiKey;
private httpAgent;
private httpsAgent;
constructor(baseUrl: string, apiKey: string);
protected fetch<T>(relativeUrl: string, { method, headers, body, }?: {
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
headers?: {
[key: string]: string;
};
body?: string;
}): Promise<T>;
destroyAgents(): void;
}