import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { QueryEmailSubscriptionsOptions, QueryEmailSubscriptionsResponse, UpsertEmailSubscriptionOptions, UpsertEmailSubscriptionResponse, EmailSubscription, BulkUpsertEmailSubscriptionResponse, GenerateUnsubscribeLinkOptions, GenerateUnsubscribeLinkResponse, EmailsubscriptionEmailSubscriptionChangedEnvelope } from './index.typings.js'; export { AccountInfo, ActionEvent, BaseEventMetadata, BulkUpsertEmailSubscriptionRequest, BulkUpsertEmailSubscriptionResult, ConfirmUnsubscribeActionRequest, DomainEvent, DomainEventBodyOneOf, EmailSubscriptionChanged, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, GenerateUnsubscribeLinkRequest, GetEmailSubscriptionRequest, GetEmailSubscriptionResponse, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, Metadata, Paging, PagingMetadata, QueryEmailSubscriptionsRequest, RawHttpResponse, RenderUnsubscribePageRequest, RestoreInfo, Status, StatusWithLiterals, SubscriptionEnumStatus, SubscriptionEnumStatusWithLiterals, UpdateEmailSubscriptionRequest, UpdateEmailSubscriptionResponse, UpsertEmailSubscriptionRequest, V1ConfirmUnsubscribeActionRequest, V1RenderUnsubscribePageRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function queryEmailSubscriptions$1(httpClient: HttpClient): QueryEmailSubscriptionsSignature; interface QueryEmailSubscriptionsSignature { /** * Retrieves email subscriptions, * given the provided paging, filtering, and sorting. * * Currently, querying is supported on the `email` field * with the `$in` array filter. * For example, to query for emails `"me@my.com"` and `"you@your.org"`, * the filter should be formed like this: * * ```json * { "filter": { * "email": { * "$in": ["me@my.com", "you@your.org"] * } * } * } * ``` * * To learn how to query email subscriptions, see * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). * @param - Filter options. * Currently, querying is supported on the `email` field * with the `$in` array filter. */ (filter: Record, options?: QueryEmailSubscriptionsOptions): Promise>; } declare function upsertEmailSubscription$1(httpClient: HttpClient): UpsertEmailSubscriptionSignature; interface UpsertEmailSubscriptionSignature { /** * Updates or creates an email subscription for the requested email. * * An email subscription is returned in the response * whether it was updated or created. */ (options?: NonNullablePaths): Promise>; } declare function bulkUpsertEmailSubscription$1(httpClient: HttpClient): BulkUpsertEmailSubscriptionSignature; interface BulkUpsertEmailSubscriptionSignature { /** * Updates or creates multiple email subscriptions. * @param - List of email subscriptions to update or create. */ (subscriptions: EmailSubscription[]): Promise>; } declare function generateUnsubscribeLink$1(httpClient: HttpClient): GenerateUnsubscribeLinkSignature; interface GenerateUnsubscribeLinkSignature { /** * Creates an unsubscribe link to be shared with the relevant recipient. * * If someone clicks the **Unsubscribe** button on the confirmation page, * the recipient's `subscriptionStatus` is changed to `UNSUBSCRIBED`. * @param - Email address the unsubscribe link is for. */ (emailAddress: string, options?: GenerateUnsubscribeLinkOptions): Promise>; } declare const onEmailsubscriptionEmailSubscriptionChanged$1: EventDefinition; declare const queryEmailSubscriptions: MaybeContext & typeof queryEmailSubscriptions$1>; declare const upsertEmailSubscription: MaybeContext & typeof upsertEmailSubscription$1>; declare const bulkUpsertEmailSubscription: MaybeContext & typeof bulkUpsertEmailSubscription$1>; declare const generateUnsubscribeLink: MaybeContext & typeof generateUnsubscribeLink$1>; /** */ declare const onEmailsubscriptionEmailSubscriptionChanged: BuildEventDefinition & typeof onEmailsubscriptionEmailSubscriptionChanged$1; export { BulkUpsertEmailSubscriptionResponse, EmailSubscription, EmailsubscriptionEmailSubscriptionChangedEnvelope, GenerateUnsubscribeLinkOptions, GenerateUnsubscribeLinkResponse, QueryEmailSubscriptionsOptions, QueryEmailSubscriptionsResponse, UpsertEmailSubscriptionOptions, UpsertEmailSubscriptionResponse, bulkUpsertEmailSubscription, generateUnsubscribeLink, onEmailsubscriptionEmailSubscriptionChanged, queryEmailSubscriptions, upsertEmailSubscription };