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(api: AxiosInstance, url: string): Promise;