import { ReactNode } from 'react'; import { User as ProfileUser } from './AuthProvider'; /** * Unified context value available to all components and microfrontends. */ export interface ContextManagerValue { /** Current user ID (null if not authenticated) */ userId: string | null; /** Full user object */ user: ProfileUser | null; /** Access token (JWT) */ accessToken: string | null; /** Workspace-scoped token (JWT) */ workspaceToken: string | null; /** Whether the user is authenticated */ isAuthenticated: boolean; /** Active profile ID (for multi-account) */ activeProfileId: string | null; /** Currently selected organization ID */ organizationId: string | null; /** Currently selected workspace ID */ workspaceId: string | null; /** Currently selected project ID */ projectId: string | null; /** Currently selected tenant ID */ tenantId: string | null; } export interface ContextManagerProviderProps { children: ReactNode; } /** * ContextManagerProvider * * Wraps the React tree to provide unified context access. * Must be rendered inside both AuthProvider and ActiveContextProvider. */ export declare function ContextManagerProvider({ children }: ContextManagerProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access the unified context manager. * * Returns all context data (user, auth, org, workspace, project, tenant) * from a single hook call. * * @example * ```tsx * const ctx = useContextManager(); * * // Check auth * if (!ctx.isAuthenticated) return ; * * // Use context IDs * fetchData({ workspaceId: ctx.workspaceId, orgId: ctx.organizationId }); * ``` */ export declare function useContextManager(): ContextManagerValue; //# sourceMappingURL=ContextManagerProvider.d.ts.map