mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
14 lines (13 loc) • 643 B
TypeScript
export type FnGetAccessToken = () => Promise<string | undefined> | string | undefined;
export declare class MtmBaseService {
protected accessToken: FnGetAccessToken | string;
constructor(accessToken: FnGetAccessToken | string);
getAccessToken(): Promise<string | undefined>;
getBaseApiUrl(): string | undefined;
getApiBasePath(): string;
httpGetRaw(url: string): Promise<any>;
onResponse(req: Request, res: Response): Promise<any>;
httpRequest(url: string, payload?: any): Promise<any>;
apiPost(path: string, payload: any): Promise<any>;
httpApiGet(apiPath: string, searchParams?: any): Promise<any>;
}