import type { ReactNode } from "react"; export interface KeycloakProps { clientId: string; url?: string; realm?: string; initOptions?: Record; loading?: ReactNode; errorFallback?: ReactNode; allowUnauthenticated?: boolean; onError?: (error: unknown) => void; } export declare function Keycloak(props: KeycloakProps): null; export interface KeycloakState { instance: any; initialized: boolean; authenticated: boolean; token: string | null; error: unknown; login(options?: Record): Promise; logout(options?: Record): Promise; updateToken(minValidity?: number): Promise; } export declare function useKeycloak(): KeycloakState;