1 | import { AxiosRequestConfig } from "axios";
|
2 | export declare type APIQueryParams = Record<string, any>;
|
3 | export declare type APIUrlParams = Record<string, any>;
|
4 | export declare type APIRequestConfig = AxiosRequestConfig;
|
5 | export declare type APIResponse = any;
|
6 | export declare type Endpoint<T = APIQueryParams, T2 = APIUrlParams, T3 = APIResponse> = (queryParams?: T, urlParams?: T2, requestConfig?: APIRequestConfig) => Promise<T3>;
|
7 | export interface Endpoints {
|
8 | [x: string]: Endpoint;
|
9 | }
|