import { User } from "vr-models"; import { UserRole } from "vr-models"; interface HierarchyCheckResult { allowed: boolean; reason?: string; code?: "INSUFFICIENT_HIERARCHY" | "SAME_LEVEL_RESTRICTION" | "CANNOT_ACT_ON_HIGHER" | "CANNOT_ACT_ON_SELF"; } /** * Check if an actor can perform moderation actions on a target user * based on role hierarchy and security clearance levels */ export declare function canModerateUser(actorUser: User, targetUser: User): Promise; /** * Simplified version that just returns boolean */ export declare function canModerate(actorUser: User, targetUser: User): Promise; /** * Get list of roles that actor can moderate */ export declare function getModeratableRoles(actorRole: UserRole): UserRole[]; /** * Check if actor has higher authority than target */ export declare function hasHigherAuthority(actorRole: UserRole, actorLevel: number, targetRole: UserRole, targetLevel: number): boolean; export {};