import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { ApproveJoinGroupRequestsResponse, Rejection, RejectJoinGroupRequestsResponse, ListJoinGroupRequestsOptions, ListJoinGroupRequestsResponse, QueryJoinGroupRequestsOptions, JoinGroupRequestsQueryBuilder, JoinGroupRequestQuery, QueryJoinGroupRequestsResponse, JoinGroupRequestApprovedEnvelope, JoinGroupRequestCreatedEnvelope, JoinGroupRequestRejectedEnvelope } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApproveAllJoinGroupRequestsRequest, ApproveAllJoinGroupRequestsResponse, ApproveJoinGroupRequestsRequest, BaseEventMetadata, CancelJoinGroupRequestRequest, CancelJoinGroupRequestResponse, CommonQueryWithEntityContext, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, EventsViolationOptions, GetJoinRequirementsRequest, GetJoinRequirementsResponse, IdentificationData, IdentificationDataIdOneOf, ItemsToUpdate, ItemsToUpdateWithLiterals, JoinGroupRequest, JoinGroupRequestApproved, JoinGroupRequestCancelled, JoinGroupRequestQuerySpec, JoinGroupRequestRejected, JoinGroupRequestsQueryResult, JoinRequestsApproved, ListAllJoinGroupRequestsRequest, ListAllJoinGroupRequestsResponse, ListJoinGroupRequestsRequest, MemberJoinedGroup, MembersAddedToGroup, MembersInvitedToGroup, MembershipQuestionAnswer, MembershipQuestionViolationOptions, MessageEnvelope, OwnershipFilter, OwnershipFilterWithLiterals, Paging, PagingMetadata, PaidPlan, PricingPlanViolationOptions, Query, QueryJoinGroupRequestsRequest, RejectAllJoinGroupRequestsRequest, RejectAllJoinGroupRequestsResponse, RejectJoinGroupRequestsRequest, RequestDetails, RequestStatus, RequestStatusWithLiterals, RestoreInfo, SocialGroupsEvent, SocialGroupsEventPayloadOneOf, SortOrder, SortOrderWithLiterals, Sorting, SubmitJoinGroupRequestRequest, SubmitJoinGroupRequestResponse, Violation, ViolationType, ViolationTypeWithLiterals, ViolationViolationOptionsOneOf, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function approveJoinGroupRequests$1(httpClient: HttpClient): ApproveJoinGroupRequestsSignature; interface ApproveJoinGroupRequestsSignature { /** * Approves pending join group requests. * Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well. * @param - IDs of the site members to approve. * @param - ID of the group requested to join. */ (groupId: string, memberIds: string[]): Promise>; } declare function rejectJoinGroupRequests$1(httpClient: HttpClient): RejectJoinGroupRequestsSignature; interface RejectJoinGroupRequestsSignature { /** * Rejects pending join group requests. * Group managers always have access to this functionality. In some cases, site owners will allow group members to use this functionality as well. * @param - Rejection info. * @param - ID of the group requested to join. */ (groupId: string, rejections: Rejection[]): Promise>; } declare function listJoinGroupRequests$1(httpClient: HttpClient): ListJoinGroupRequestsSignature; interface ListJoinGroupRequestsSignature { /** * Lists requests to join a group. * * > **Note:** This function is only relevant for private groups. * * The `listjoinGroupRequests()` function returns a Promise that resolves to a list of up to 100 requests to join a group. Sorts by default to `_createdDate` in descending order. * Only group admins can see requests to join their group. Site members can access their own join requests in their site. * * > **Notes:** * * @param - ID of the group requested to join. */ (groupId: string, options?: ListJoinGroupRequestsOptions): Promise>; } declare function queryJoinGroupRequests$1(httpClient: HttpClient): QueryJoinGroupRequestsSignature; interface QueryJoinGroupRequestsSignature { /** * Creates a query to retrieve a list of join requests. * * > **Notes:** * > + This function is only relevant for private groups. * > + For `SECRET` groups, only group admins can query requests to join their group. * * The `queryjoinGroupRequests()` function builds a query to retrieve a list of all requests to join a group, and returns a `JoinGroupRequestsQueryBuilder` object. * * The returned object contains the query definition which is typically used to run the query using the [`find()`](/join-group-requests-query-builder/find) function. * * You can refine the query by chaining `joinGroupRequestsQueryBuilder` functions onto the query. `joinGroupRequestsQueryBuilder` functions enable you to sort, filter, and control the results that `queryjoinGroupRequests()` returns. * * The results of the `queryjoinGroupRequests()` function are sorted by `_createdDate` in descending order. * * `queryjoinGroupRequests()` runs with this `joinGroupRequestsQueryBuilder` default, which you can override: * + [`limit(100)`](/join-group-requests-query-builder/limit) * * The following `joinGroupRequestsQueryBuilder` functions are supported for `queryjoinGroupRequests()`. For a full description of the joinGroupRequests object, see the object returned for the [`items`](/join-group-requests-query-result/items) property in `JoinGroupRequestsQueryResult`. * * @param - Group ID. */ (groupId: string, options?: QueryJoinGroupRequestsOptions): JoinGroupRequestsQueryBuilder; } declare function typedQueryJoinGroupRequests$1(httpClient: HttpClient): TypedQueryJoinGroupRequestsSignature; interface TypedQueryJoinGroupRequestsSignature { /** */ (query: JoinGroupRequestQuery, options?: QueryJoinGroupRequestsOptions): Promise>; } declare const onJoinGroupRequestApproved$1: EventDefinition; declare const onJoinGroupRequestCreated$1: EventDefinition; declare const onJoinGroupRequestRejected$1: EventDefinition; declare const approveJoinGroupRequests: MaybeContext & typeof approveJoinGroupRequests$1>; declare const rejectJoinGroupRequests: MaybeContext & typeof rejectJoinGroupRequests$1>; declare const listJoinGroupRequests: MaybeContext & typeof listJoinGroupRequests$1>; declare const queryJoinGroupRequests: MaybeContext & typeof queryJoinGroupRequests$1>; declare const typedQueryJoinGroupRequests: MaybeContext & typeof typedQueryJoinGroupRequests$1>; /** * Triggered when a join group request is approved. */ declare const onJoinGroupRequestApproved: BuildEventDefinition & typeof onJoinGroupRequestApproved$1; /** */ declare const onJoinGroupRequestCreated: BuildEventDefinition & typeof onJoinGroupRequestCreated$1; /** * Triggered when a join group request is rejected. */ declare const onJoinGroupRequestRejected: BuildEventDefinition & typeof onJoinGroupRequestRejected$1; export { ApproveJoinGroupRequestsResponse, JoinGroupRequestApprovedEnvelope, JoinGroupRequestCreatedEnvelope, JoinGroupRequestQuery, JoinGroupRequestRejectedEnvelope, JoinGroupRequestsQueryBuilder, ListJoinGroupRequestsOptions, ListJoinGroupRequestsResponse, QueryJoinGroupRequestsOptions, QueryJoinGroupRequestsResponse, RejectJoinGroupRequestsResponse, Rejection, approveJoinGroupRequests, listJoinGroupRequests, onJoinGroupRequestApproved, onJoinGroupRequestCreated, onJoinGroupRequestRejected, queryJoinGroupRequests, rejectJoinGroupRequests, typedQueryJoinGroupRequests };