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 DmMembersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class DmMembersClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: DmMembersClient.Options); /** * Returns a paginated list of members in a specific DM channel, sorted by the date they were added. * * Required permissions (one of): * - `dms:read` * - `support_chat:read` * * @param {Whop.ListDmMembersRequest} request * @param {DmMembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.dmMembers.list({ * first: 42, * last: 42, * channel_id: "channel_id" * }) */ list(request: Whop.ListDmMembersRequest, requestOptions?: DmMembersClient.RequestOptions): Promise>; /** * Add a new user to an existing DM channel. Only an admin of the channel can add members. * * Required permissions (one of): * - `dms:message:manage` * - `support_chat:message:create` * * @param {Whop.CreateDmMembersRequest} request * @param {DmMembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.dmMembers.create({ * channel_id: "channel_id", * user_id: "user_xxxxxxxxxxxxx" * }) */ create(request: Whop.CreateDmMembersRequest, requestOptions?: DmMembersClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing DM member. * * Required permissions (one of): * - `dms:read` * - `support_chat:read` * * @param {Whop.RetrieveDmMembersRequest} request * @param {DmMembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.dmMembers.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveDmMembersRequest, requestOptions?: DmMembersClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Remove a user from a DM channel. An admin can remove any member, and a member can remove themselves. * * Required permissions (one of): * - `dms:read` * - `support_chat:read` * * @param {Whop.DeleteDmMembersRequest} request * @param {DmMembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.dmMembers.delete({ * id: "id" * }) */ delete(request: Whop.DeleteDmMembersRequest, requestOptions?: DmMembersClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Update a DM channel member's settings, such as their notification preferences or membership status. * * Required permissions (one of): * - `dms:read` * - `support_chat:read` * * @param {Whop.UpdateDmMembersRequest} request * @param {DmMembersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.dmMembers.update({ * id: "id" * }) */ update(request: Whop.UpdateDmMembersRequest, requestOptions?: DmMembersClient.RequestOptions): core.HttpResponsePromise; private __update; }