import { FC, PropsWithChildren } from 'react'; import { VibeControlsRootProps } from '../types'; /** * Hook to access VibeControls context */ export declare const useVibeControls: () => VibeControlsRootProps; /** * A route served by the host shell rather than this microfrontend. Pass it to * {@link useVibeNavigate} to navigate there without the `basePath` prefix. */ export interface ShellRoute { readonly shellPath: string; } /** * The shell's plan picker, where every quota / upgrade prompt lands. A plain * '/billing/plans' through useVibeNavigate became '/vibecontrols/billing/plans' * — a 404 — so every "View Billing" button in VibeControls was dead (G43). */ export declare const BILLING_PLANS_ROUTE: ShellRoute; /** * Hook for navigation within the VibeControls microfrontend. * Uses the shell's navigate function if available, falling back to * React Router's useNavigate. Automatically prepends basePath. * * Usage: * const navigate = useVibeNavigate(); * navigate('/agents/123'); // navigates to /vibecontrols/agents/123 */ export declare const useVibeNavigate: () => (path: string | ShellRoute) => void; /** * Provider component for VibeControls 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. */ export declare const VibeControlsProvider: FC>;