import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Whop from "../../../index.mjs"; export declare namespace PeopleClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Person is an identity-linked profile of a visitor or customer of an account, assembled from every [event](/api-reference/beta/events/event) the person generated, such as pixel page views, ad clicks, leads, and payments. * * Use the People API to list and segment the people of an account by activity, purchases, traffic source, or marketing touch, and to retrieve one person by person ID, user ID, email address, or phone number. */ export declare class PeopleClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: PeopleClient.Options); /** * Lists the people (visitors and customers) of an account: identity-linked profiles assembled from every pixel, payment, and platform event. Filter and sort them to segment an account's audience. * * @param {Whop.ListPeopleRequest} request * @param {PeopleClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.people.list({ * source: ["direct"], * event_name: ["payment.completed"] * }) */ list(request?: Whop.ListPeopleRequest, requestOptions?: PeopleClient.RequestOptions): Promise>; /** * Retrieves one person for an account, looked up by person ID, user ID, email address, or phone number. * * @param {Whop.RetrievePeopleRequest} request * @param {PeopleClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.people.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrievePeopleRequest, requestOptions?: PeopleClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }