export interface RbacGuardOptions { roles?: string[]; minLevel?: number; permissions?: string[]; context?: Record; redirectTo?: string; onUnauthorized?: () => void; requireAll?: boolean; } /** * Hook to guard components/pages with RBAC checks * Redirects or calls callback if user doesn't meet requirements * * @example * // Require admin role * useRbacGuard({ roles: ['admin'] }) * * // Require level 50 or higher * useRbacGuard({ minLevel: 50 }) * * // Require specific permission * useRbacGuard({ permissions: ['manage_users'] }) * * // Require specific context (e.g., country) * useRbacGuard({ context: { country: 'CH' } }) * * // Combine requirements (requireAll = true means ALL must match) * useRbacGuard({ * roles: ['admin'], * context: { country: 'CH' }, * requireAll: true * }) */ export declare function useRbacGuard(options?: RbacGuardOptions): { user: import("../providers/SimplifiedRbacProvider").RbacUser | null; loading: boolean; isAuthorized: boolean; }; //# sourceMappingURL=useRbacGuard.d.ts.map