import { AxiosRequestConfig } from "axios"; export interface IRestHelper { get: (url: string, options?: IReqOptions ) => Promise; delete: (url: string, options?: IReqOptions) => Promise; post: (url: string, reqBody: any, options?: IReqOptions) => Promise; put: (url: string, reqBody: any, options?: IReqOptions) => Promise; patch: (url: string, reqBody: any, options?: IReqOptions) => Promise; } export interface IReqOptions extends AxiosRequestConfig { showLogsInConsole?: boolean; flg?: string; } export type IRequestParams = Record; export interface IError { response?: { status: number; data: { message?: string }; }; request?: any; message: string; } export * from "./logs.interface";