import React from 'react'; import type { AuthContextValue, AuthState, KeycloakAuthConfig } from '../types/auth.types.js'; /** * @internal Holds authentication state (isAuthenticated, isLoading, user, error). */ export declare const AuthStateContext: React.Context; /** * @internal Holds authentication actions (login, logout, getAccessToken, etc.). */ export declare const AuthActionsContext: React.Context | null>; /** * Legacy internal context for backward compatibility with test helpers. * @internal */ export declare const AuthContext: React.Context; /** Props for {@link AuthProvider}. */ export interface AuthProviderProps extends KeycloakAuthConfig { readonly children: React.ReactNode; } /** * Provides Keycloak Authorization Code + PKCE authentication to the component tree. * * PKCE (S256) is active by default in `oidc-client-ts` — no extra configuration needed. * Silent token renewal via refresh token is enabled automatically. * * Place this provider inside your router so that `onSigninCallback` can use * `useNavigate`: * * ```tsx * function AppWithAuth() { * const navigate = useNavigate(); * return ( * navigate('/')} * > * * * ); * } * ``` */ export declare const AuthProvider: ({ children, storageType, onSigninCallback, scope, ...settings }: AuthProviderProps) => React.ReactElement; /** * Test helper: Wraps children with both auth contexts for testing purposes. * @internal For testing only. Do not use in production code. */ export declare const AuthContextProvider: ({ children, value }: { readonly children: React.ReactNode; readonly value: AuthContextValue; }) => React.ReactElement; //# sourceMappingURL=AuthContext.d.ts.map