import React from 'react'; import { useTideCloakContext } from './contexts/TideCloakContextProvider'; export { TideCloakContextProvider } from './contexts/TideCloakContextProvider'; export type { TideCloakContextValue, TideCloakContextProviderProps, ActionNotification, ActionNotificationType } from './contexts/TideCloakContextProvider'; export type { NativeAdapter, NativeTokenData, NativeAuthCallbackResult } from "@tidecloak/js"; export { useAuthCallback, parseCallbackUrl } from './hooks/useAuthCallback'; export type { AuthCallbackState, UseAuthCallbackOptions } from './hooks/useAuthCallback'; export { AuthCallback, SimpleAuthCallback } from './components/AuthCallback'; export type { AuthCallbackProps } from './components/AuthCallback'; export { RequestEnclave, AdminAPI } from "@tidecloak/js"; /** * Hook to access authentication state and helpers. * Must be used within a TideCloakContextProvider. */ export declare const useTideCloak: typeof useTideCloakContext; /** * Renders children only when user is authenticated. */ export declare function Authenticated({ children }: { children: React.ReactNode; }): React.ReactNode; /** * Renders children only when user is NOT authenticated. */ export declare function Unauthenticated({ children }: { children: React.ReactNode; }): React.ReactNode; /** * Renders children only when user has the specified realm role. */ export declare function HasRealmRole({ role, children, fallback }: { role: string; children: React.ReactNode; fallback?: React.ReactNode; }): React.ReactNode; /** * Renders children only when user has the specified client/resource role. */ export declare function HasClientRole({ role, resource, children, fallback }: { role: string; resource?: string; children: React.ReactNode; fallback?: React.ReactNode; }): React.ReactNode; /** * Renders children only when user is offline. */ export declare function Offline({ children }: { children: React.ReactNode; }): React.ReactNode; /** * Renders children only when user is online. */ export declare function Online({ children }: { children: React.ReactNode; }): React.ReactNode; /** * Renders children when the user was offline at some point during the session. * Useful for showing "sync needed" banners. */ export declare function WasOffline({ children, onReset }: { children: React.ReactNode; onReset?: () => void; }): React.ReactNode; /** * Renders children when re-authentication is needed (e.g., after 401). */ export declare function NeedsReauth({ children }: { children: React.ReactNode; }): React.ReactNode; /** * Renders loading state during login/logout operations. */ export declare function AuthLoading({ children }: { children: React.ReactNode; }): React.ReactNode; //# sourceMappingURL=index.d.ts.map