uikit/dist/provider-api.d.ts
Mohamadzadeh f11313909d
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Has been skipped
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Has been skipped
add new BiProvider and v1.1.0
2026-10-25 16:15:10 +03:30

13 lines
521 B
TypeScript

import type { AxiosInstance, AxiosRequestConfig } from "axios";
export interface ApiProps {
baseUrl?: string;
auth?: boolean;
/** Modern API only. The legacy compatibility path retains automatic logout. */
logoutOnUnauthorized?: boolean;
onUnauthorized?: (error: unknown) => void;
axiosConfig?: AxiosRequestConfig;
}
export declare function Api(props: ApiProps): null;
export declare function useApi(): AxiosInstance;
export declare function fetcher<T = unknown>(api: AxiosInstance, url: string): Promise<T>;