import { useAuthContext } from './AuthProvider'; import { Role, Permission } from './types'; /** * Hook exposing { user, roles, login, logout, hasRole }. */ export declare function useAuth(): ReturnType & { roles: Role[]; permissions: Permission[]; displayName: string; email: string; avatarUrl: string | undefined; isAdmin: boolean; isManager: boolean; }; /** * Hook to check if the current user has a specific role */ export declare function useHasRole(role: Role): boolean; /** * Hook to check if the current user has a specific permission */ export declare function useHasPermission(permission: Permission): boolean;