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 ChatChannelsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ChatChannelsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ChatChannelsClient.Options); /** * Lists the chat channels in an account. * * Required permissions: * - `chat:read` * * @param {Whop.ListChatChannelsRequest} request * @param {ChatChannelsClient.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.chatChannels.list({ * first: 42, * last: 42, * product_id: "prod_xxxxxxxxxxxxx", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ list(request: Whop.ListChatChannelsRequest, requestOptions?: ChatChannelsClient.RequestOptions): Promise>; /** * Retrieves the details of an existing chat channel. * * Required permissions: * - `chat:read` * * @param {Whop.RetrieveChatChannelsRequest} request * @param {ChatChannelsClient.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.chatChannels.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveChatChannelsRequest, requestOptions?: ChatChannelsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Updates a chat channel's moderation settings, such as who can post, banned words, and media restrictions. * * Required permissions: * - `chat:moderate` * * @param {Whop.UpdateChatChannelsRequest} request * @param {ChatChannelsClient.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.chatChannels.update({ * id: "id" * }) */ update(request: Whop.UpdateChatChannelsRequest, requestOptions?: ChatChannelsClient.RequestOptions): core.HttpResponsePromise; private __update; }