Repository URL to install this package:
Version:
0.2.0-dev.38 ▾
|
import type { ApiOptions } from './api.types';
export declare const backendAxiosInstance: import("axios").AxiosInstance;
export declare function getApiOptions(options?: ApiOptions): {
apiBasePath: string;
fetcher: (url: string) => Promise<any>;
apiFetcher: (apiPath: string) => Promise<any>;
useApi: (path: import("./api.types").ApiPath, params?: Record<string, any> | undefined, options?: Partial<import("swr/dist/types").PublicConfiguration<any, any, import("swr").BareFetcher<any>>> | undefined) => import("./api.types").UseApiResults;
axiosInstance: import("axios").AxiosInstance;
};