/** * useAuthenticatedApi — React hook + provider for a shared authenticated * Axios instance. * * The provider creates a single AxiosInstance via createAuthenticatedApiClient * using the baseUrl from SuiteConfigProvider. All component libraries consume * the same instance through the useAuthenticatedApi() hook, eliminating * duplicate axios instances and circular dependency issues. * * Usage: * // In the app root (wrap inside SuiteConfigProvider): * * * * * // In any component library: * const api = useAuthenticatedApi(); * const res = await api.get('/some-endpoint'); */ import { ReactNode } from 'react'; import type { AxiosInstance } from 'axios'; export interface AuthenticatedApiProviderProps { children: ReactNode; /** Optional token key in localStorage. Defaults to 'authToken'. */ tokenKey?: string; } export declare const AuthenticatedApiProvider: ({ children, tokenKey, }: AuthenticatedApiProviderProps) => import("react/jsx-runtime").JSX.Element; /** * Returns the shared authenticated Axios instance. * Must be used within an AuthenticatedApiProvider (which itself must be * inside a SuiteConfigProvider). */ export declare const useAuthenticatedApi: () => AxiosInstance; //# sourceMappingURL=useAuthenticatedApi.d.ts.map