/** * Is the user a superadmin? (global — can manage all users and roles) */ export declare function isSuperAdmin(userId: string): Promise; /** * Is the user an admin of a specific role group? * Returns true if the user has `type = 'admin'` or `type = 'superadmin'` for that role, * OR if the user is a global superadmin (superadmin on any role). */ export declare function isGroupAdmin(userId: string, role: string): Promise; /** * Can the actor manage members of the given role? * Superadmins can manage any role. Admins can manage roles they belong to. */ export declare function canManageRole(actorId: string, role: string): Promise; /** * Can this user act on escalations across all roles? * * True for: * - superadmin (any role with type 'superadmin') * - admin/admin (the named 'admin' role with type 'admin') * * These users see all escalations, can claim/resolve/escalate across * all roles, and can perform bulk actions. */ export declare function hasGlobalEscalationAccess(userId: string): Promise; /** * Batch check: does the user have admin type for ALL specified roles? * Single query — replaces the N+1 loop in checkBulkPermission. */ export declare function hasRolesAsAdmin(userId: string, roles: string[]): Promise;