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"; import { LogsClient } from "../resources/logs/client/Client.js"; import { NotesClient } from "../resources/notes/client/Client.js"; export declare namespace MembersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Member is one buyer's relationship with an account: one record per customer, however many memberships they hold. It tracks whether they have joined or left, their access level, and when they last opened the account's content. * * Use the Members API to list and search an account's members, retrieve a single member, and read a member's activity log. Member rows are created and maintained by the membership lifecycle; to grant or revoke access, work with memberships instead. */ export declare class MembersClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _logs: LogsClient | undefined; protected _notes: NotesClient | undefined; constructor(options?: MembersClient.Options); get logs(): LogsClient; get notes(): NotesClient; /** * Lists the members of an account. A member is one buyer's relationship with the account, regardless of how many memberships they hold. * * @param {Whop.ListMembersRequest} request * @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.members.list({ * user_ids: ["user_xxxxxxxxxxxxxx"], * product_ids: ["prod_xxxxxxxxxxxxx"], * variant_ids: ["plan_xxxxxxxxxxxxx"], * promo_code_ids: ["promo_xxxxxxxxxxxx"] * }) */ list(request?: Whop.ListMembersRequest, requestOptions?: MembersClient.RequestOptions): Promise>; /** * Retrieves a member by ID. Accessible to the account and to the member's own user. * * @param {Whop.RetrieveMembersRequest} request * @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.members.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveMembersRequest, requestOptions?: MembersClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }