import { RequestOptionsFactory } from '@wix/sdk-types'; /** * 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. */ export declare function createReferredFriend(payload: object): RequestOptionsFactory; /** Retrieves a referred friend by ID. */ export declare function getReferredFriend(payload: object): RequestOptionsFactory; /** * 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. */ export declare function getReferredFriendByContactId(payload: object): RequestOptionsFactory; /** * Updates a referred friend. Supports partial updates. * * You must pass the latest `revision` for a successful update. */ export declare function updateReferredFriend(payload: object): RequestOptionsFactory; /** Deletes a referred friend. */ export declare function deleteReferredFriend(payload: object): RequestOptionsFactory; /** * 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. */ export declare function queryReferredFriend(payload: object): RequestOptionsFactory;