import { SymbolToken } from '@servicetitan/react-ioc'; import { AxiosInstance } from 'axios'; import { ComponentType, FC, PropsWithChildren } from 'react'; import { AuthAdapter } from './auth-adapters'; export declare const RETRY_LIMIT = 1; export interface WithMicroserviceContext { authURL?: string; baseURL: string; } type AuthAdapterCallback = (context: WithMicroserviceContext) => AuthAdapter; export interface WithMicroserviceOptions { authURL?: string; axiosInstance?: AxiosInstance; baseURL: string; tokens?: SymbolToken[]; component: ComponentType>; authAdapter?: 'bearer' | 'token' | AuthAdapterCallback; extraHeaders?: { [key: string]: any; }; /** * Run authentication method as soon as the component is mounted. */ preAuthenticate?: boolean; preAuthenticateCallback?: (error?: any) => void; } export interface AxiosRequestConfigAuthentication { skipAuth?: boolean; } export declare function withMicroservice(options: WithMicroserviceOptions): FC>; export {}; //# sourceMappingURL=with-microservice.d.ts.map