UNPKG

likeminds-chat-beta

Version:

LikeMinds Javascript SDK for chat APIs

21 lines (20 loc) 725 B
import { AxiosRequestConfig } from 'axios'; import LMResponse from './lmresponse'; declare class NetworkLibrary { private tokenManager; private xApiKey; private xVersionCode; private xPlatformCode; constructor(); setAccessToken(accessToken: string): void; setRefreshToken(refreshToken: string): void; setApiKey(xApiKey: string): void; getApiKey(): string; setPlatformCode(xPlatformCode: string): void; getPlatformCode(): string; setVersionCode(xVersionCode: number): void; getVersionCode(): any; private makeRequest; makeAuthenticatedRequest<T>(url: string, config?: AxiosRequestConfig): Promise<LMResponse<T>>; } export default NetworkLibrary;