import { FC, PropsWithChildren } from 'react'; import { PlanMagnetRootProps } from '../types'; /** * Hook to access PlanMagnet context */ export declare const usePlanMagnet: () => PlanMagnetRootProps; /** * Hook for navigation within the PlanMagnet microfrontend. * Uses the shell's navigate function if available, falling back to * React Router's useNavigate. Automatically prepends basePath. * * Usage: * const navigate = usePlanMagnetNavigate(); * navigate('/products/123'); // navigates to /planmagnet/products/123 */ export declare const usePlanMagnetNavigate: () => (path: string) => void; /** * Provider component for PlanMagnet microfrontend. * Sets up routing, Apollo Client with auth error detection, and context. * * The Apollo Client is configured with: * - An onError link that detects UNAUTHENTICATED / FORBIDDEN responses and * invokes the `onAuthError` prop so the host shell can trigger logout. * - A dynamic auth link that reads the token per-request (not baked in at * client creation time), so token refreshes take effect immediately. * - InMemoryCache with type policies for proper cache normalization. * - Default fetch policy: cache-and-network. */ export declare const PlanMagnetProvider: FC>; //# sourceMappingURL=PlanMagnetProvider.d.ts.map