UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

22 lines (21 loc) 1.29 kB
import { Account } from 'next-auth'; import { ResView } from '../validations/res'; export declare const mtmApiCall: (resName: string, action: string, searchParams?: any, payload?: any) => Promise<any>; export declare const httpApiGet: (apiPath: string, searchParams?: any) => Promise<any>; export declare const httpGetRaw: (url: string) => Promise<any>; export declare const httpDelete: (apiPath: string, searchParams?: any) => Promise<any>; export declare const mtmApiPost: (apiPath: string, payload?: any) => Promise<any>; export declare const LoadFormConfig: (resName: string, action: string) => Promise<any>; export declare const LoadDashViewConfig: (resName: string) => Promise<ResView>; export declare const getResView: (resName: string) => Promise<ResView>; export declare const mtmApiAddItem: (resName: string, payload: any) => Promise<any>; export declare const GetById: (resName: string, id: string | number) => Promise<ResView>; export declare const DeleteById: (resName: string, id: string | number) => Promise<any>; export declare const loadDashConfig: () => Promise<any>; export declare const getMe: () => Promise<any>; export declare const oauth2Login: (account: Account) => Promise<{ id: string; userName: string; roles: string[]; accessToken: string; }>;