import { ReactNode } from 'react'; import { MicrofrontendRootProps } from '../types'; type MicrofrontendContextValue = MicrofrontendRootProps; export interface MicrofrontendProviderProps extends MicrofrontendRootProps { children: ReactNode; /** Target supergraph (tenant or workspaces) - maps to gateway */ supergraph: 'tenant' | 'workspaces' | 'global'; } /** * Provider that sets up the microfrontend context with GraphQL client, * navigation, and user information. */ export declare function MicrofrontendProvider({ children, basePath, navigate, currentUser, tenantId, workspaceId, apiGatewayUrl, authToken, supergraph, }: MicrofrontendProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access microfrontend context values */ export declare function useMicrofrontend(): MicrofrontendContextValue; /** * Hook to access the current user */ export declare function useCurrentUser(): import('..').User | undefined; /** * Hook to access navigation function */ export declare function useNavigate(): { navigate: (path: string) => void; basePath: string; /** * Navigate to a path relative to the microfrontend's base path */ navigateRelative: (path: string) => void; }; /** * Hook to access tenant and workspace IDs */ export declare function useScope(): { tenantId: string | undefined; workspaceId: string | undefined; }; export {}; //# sourceMappingURL=MicrofrontendProvider.d.ts.map