import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { CreateReferredFriendOptions, CreateReferredFriendResponse, CreateReferredFriendResponseNonNullableFields, DeleteReferredFriendOptions, GetReferredFriendByContactIdResponse, GetReferredFriendByContactIdResponseNonNullableFields, ReferredFriend, ReferredFriendCreatedEnvelope, ReferredFriendDeletedEnvelope, ReferredFriendNonNullableFields, ReferredFriendUpdatedEnvelope, ReferredFriendsQueryBuilder, UpdateReferredFriend } from './loyalty-referral-v1-referred-friend-friends.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createReferredFriend(httpClient: HttpClient): CreateReferredFriendSignature; interface CreateReferredFriendSignature { /** * Creates a new referred friend or returns an existing entity if it already exists. * * This method must be called with a [member identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#site-members). * * A referral code must be provided either in the request or via scope. * * The member must be eligible to become a referred friend. */ (options?: CreateReferredFriendOptions | undefined): Promise; } export declare function getReferredFriend(httpClient: HttpClient): GetReferredFriendSignature; interface GetReferredFriendSignature { /** * Retrieves a referred friend by ID. * @param - ID of the referred friend to retrieve. * @returns Retrieved referred friend. */ (referredFriendId: string): Promise; } export declare function getReferredFriendByContactId(httpClient: HttpClient): GetReferredFriendByContactIdSignature; interface GetReferredFriendByContactIdSignature { /** * Retrieves a referred friend by contact ID. * * You can use `me` instead of a specific contact ID to get the referred friend for the current identity's contact. * @param - Contact ID or "me" to get the current identity's contact. */ (contactId: string): Promise; } export declare function updateReferredFriend(httpClient: HttpClient): UpdateReferredFriendSignature; interface UpdateReferredFriendSignature { /** * Updates a referred friend. Supports partial updates. * * You must pass the latest `revision` for a successful update. * @param - ID of the referred friend. * @returns Updated referred friend. */ (_id: string, referredFriend: UpdateReferredFriend): Promise; } export declare function deleteReferredFriend(httpClient: HttpClient): DeleteReferredFriendSignature; interface DeleteReferredFriendSignature { /** * Deletes a referred friend. * @param - ID of the referred friend to delete. */ (referredFriendId: string, options?: DeleteReferredFriendOptions | undefined): Promise; } export declare function queryReferredFriend(httpClient: HttpClient): QueryReferredFriendSignature; interface QueryReferredFriendSignature { /** * Creates a query to retrieve a list of referred friends. * * The `queryReferredFriend()` function builds a query to retrieve a list of events and returns a `ReferredFriendsQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the `find()` function. * * You can refine the query by chaining `ReferredFriendsQueryBuilder` functions onto the query. `ReferredFriendsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferredFriend()` returns. * * `queryReferredFriend()` runs with these `ReferredFriendQueryBuilder` defaults, which you can override: * * - `limit(50)` * - `descending("_createdDate")` * * The functions that are chained to `queryReferredFriend()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('referringCustomerId'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by referring customer ID. */ (): ReferredFriendsQueryBuilder; } export declare const onReferredFriendCreated: EventDefinition; export declare const onReferredFriendDeleted: EventDefinition; export declare const onReferredFriendUpdated: EventDefinition; export { ActionEvent, BaseEventMetadata, CreateReferredFriendOptions, CreateReferredFriendRequest, CreateReferredFriendResponse, CreateReferredFriendResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteReferredFriendOptions, DeleteReferredFriendRequest, DeleteReferredFriendResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetReferredFriendByContactIdRequest, GetReferredFriendByContactIdResponse, GetReferredFriendByContactIdResponseNonNullableFields, GetReferredFriendRequest, GetReferredFriendResponse, GetReferredFriendResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, QueryReferredFriendRequest, QueryReferredFriendResponse, QueryReferredFriendResponseNonNullableFields, ReferredFriend, ReferredFriendCreatedEnvelope, ReferredFriendDeletedEnvelope, ReferredFriendDetails, ReferredFriendNonNullableFields, ReferredFriendUpdatedEnvelope, ReferredFriendsQueryBuilder, ReferredFriendsQueryResult, RestoreInfo, SortOrder, Sorting, Status, SuccessfulReferralEvent, UpdateReferredFriend, UpdateReferredFriendRequest, UpdateReferredFriendResponse, UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType, } from './loyalty-referral-v1-referred-friend-friends.universal.js';