import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace ProductAffiliatesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Product Affiliate represents a user's enrollment in a product's affiliate program. An enrollment can exist before the user makes a referral or earns a reward. * * Use the Product Affiliates API to list product affiliates for an account, search by affiliate name or username, and narrow the results by product, enrollment status, or signup date. */ export declare class ProductAffiliatesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ProductAffiliatesClient.Options); /** * Lists affiliate enrollments for an account's products, newest first, including affiliates who have not made a referral. Requires `affiliate:basic:read` on the account. Email addresses and email search also require `member:email:read`. * * @param {Whop.ListProductAffiliatesRequest} request * @param {ProductAffiliatesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.productAffiliates.list({ * account_id: "account_id", * product_ids: ["prod_xxxxxxxxxxxxxx"] * }) */ list(request: Whop.ListProductAffiliatesRequest, requestOptions?: ProductAffiliatesClient.RequestOptions): Promise>; }