To use the Rules API, install the @wix/groups package using npm or Yarn:
@wix/groups
or
Then import { rules } from @wix/groups:
{ rules }