import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { GroupRole, AssignRoleResponse, UnassignRoleResponse, GroupRoleAssignedEnvelope, GroupRoleUnassignedEnvelope } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AssignRoleRequest, BaseEventMetadata, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GroupMember, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, RestoreInfo, Role, RoleAssignedToGroupMember, RoleUnassignedFromGroupMember, RoleWithLiterals, UnassignRoleRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function assignRole$1(httpClient: HttpClient): AssignRoleSignature; interface AssignRoleSignature { /** * Assigns a specific role to group members. * * Calling this method overrides the group member's current `role.value`. * * >**Notes:** * > + Only group admins can assign roles. * > + You cannot create new members with this method. * @param - Group ID. * @param - Member IDs. Limited to 100 member IDs. See the Members API for details. * @param - Role to assign. */ (groupId: string, memberIds: string[], role: GroupRole): Promise>; } declare function unassignRole$1(httpClient: HttpClient): UnassignRoleSignature; interface UnassignRoleSignature { /** * Unassigns a role from group members. * * You can only unassign `ADMIN` roles. Calling this method with group members * with `role.value` set to `MEMBER` returns an error. * * > **Notes:** * > + Only group admins can assign roles. * > + You cannot remove members with this method. * @param - Group ID. * @param - Member IDs. Limited to 100 member IDs. See the Members API for details. * @param - Role to unassign. */ (groupId: string, memberIds: string[], role: GroupRole): Promise>; } declare const onGroupRoleAssigned$1: EventDefinition; declare const onGroupRoleUnassigned$1: EventDefinition; declare const assignRole: MaybeContext & typeof assignRole$1>; declare const unassignRole: MaybeContext & typeof unassignRole$1>; /** * Triggered when a role is assigned to an existing group member. */ declare const onGroupRoleAssigned: BuildEventDefinition & typeof onGroupRoleAssigned$1; /** * Triggered when a role is unassigned from a group member. */ declare const onGroupRoleUnassigned: BuildEventDefinition & typeof onGroupRoleUnassigned$1; export { AssignRoleResponse, GroupRole, GroupRoleAssignedEnvelope, GroupRoleUnassignedEnvelope, UnassignRoleResponse, assignRole, onGroupRoleAssigned, onGroupRoleUnassigned, unassignRole };