/**
 * Is the user a superadmin? (global — can manage all users and roles)
 */
export declare function isSuperAdmin(userId: string): Promise<boolean>;
/**
 * 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<boolean>;
/**
 * 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<boolean>;
