import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { CreateReferredFriendOptions, CreateReferredFriendResponse, CreateReferredFriendApplicationErrors, ReferredFriend, GetReferredFriendByContactIdResponse, UpdateReferredFriend, DeleteReferredFriendOptions, ReferredFriendCreatedEnvelope, ReferredFriendDeletedEnvelope, ReferredFriendUpdatedEnvelope, ReferredFriendsQueryBuilder, ReferredFriendQuery, typedQueryReferredFriend } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, BaseEventMetadata, CommonQueryWithEntityContext, CreateReferredFriendRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteReferredFriendRequest, DeleteReferredFriendResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetReferredFriendByContactIdRequest, GetReferredFriendRequest, GetReferredFriendResponse, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, QueryReferredFriendRequest, QueryReferredFriendResponse, ReferredFriendDetails, ReferredFriendQuerySpec, ReferredFriendsQueryResult, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, SuccessfulReferralEvent, UpdateReferredFriendRequest, UpdateReferredFriendResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createReferredFriend$1(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): Promise & { __applicationErrorsType?: CreateReferredFriendApplicationErrors; }>; } declare function getReferredFriend$1(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>; } declare function getReferredFriendByContactId$1(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>; } declare function updateReferredFriend$1(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: NonNullablePaths): Promise>; } declare function deleteReferredFriend$1(httpClient: HttpClient): DeleteReferredFriendSignature; interface DeleteReferredFriendSignature { /** * Deletes a referred friend. * @param - ID of the referred friend to delete. */ (referredFriendId: string, options?: DeleteReferredFriendOptions): Promise; } declare const onReferredFriendCreated$1: EventDefinition; declare const onReferredFriendDeleted$1: EventDefinition; declare const onReferredFriendUpdated$1: EventDefinition; declare function customQueryReferredFriend(httpClient: HttpClient): { (): ReferredFriendsQueryBuilder; (query: ReferredFriendQuery): ReturnType; }; declare const createReferredFriend: MaybeContext & typeof createReferredFriend$1>; declare const getReferredFriend: MaybeContext & typeof getReferredFriend$1>; declare const getReferredFriendByContactId: MaybeContext & typeof getReferredFriendByContactId$1>; declare const updateReferredFriend: MaybeContext & typeof updateReferredFriend$1>; declare const deleteReferredFriend: MaybeContext & typeof deleteReferredFriend$1>; declare const queryReferredFriend: MaybeContext & typeof customQueryReferredFriend>; /** * Triggered when a referred friend is created. */ declare const onReferredFriendCreated: BuildEventDefinition & typeof onReferredFriendCreated$1; /** * Triggered when a referred friend is deleted. */ declare const onReferredFriendDeleted: BuildEventDefinition & typeof onReferredFriendDeleted$1; /** * Triggered when a referred friend is updated. */ declare const onReferredFriendUpdated: BuildEventDefinition & typeof onReferredFriendUpdated$1; export { CreateReferredFriendApplicationErrors, CreateReferredFriendOptions, CreateReferredFriendResponse, DeleteReferredFriendOptions, GetReferredFriendByContactIdResponse, ReferredFriend, ReferredFriendCreatedEnvelope, ReferredFriendDeletedEnvelope, ReferredFriendQuery, ReferredFriendUpdatedEnvelope, ReferredFriendsQueryBuilder, UpdateReferredFriend, createReferredFriend, deleteReferredFriend, getReferredFriend, getReferredFriendByContactId, onReferredFriendCreated, onReferredFriendDeleted, onReferredFriendUpdated, queryReferredFriend, updateReferredFriend };