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 SupportChannelsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class SupportChannelsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: SupportChannelsClient.Options); /** * Lists support channels between an account's team and its customers, most recently active first by default. Pass `open=true` to find channels awaiting a support response. * * Required permissions: * - `support_chat:read` * * @param {Whop.ListSupportChannelsRequest} request * @param {SupportChannelsClient.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.supportChannels.list({ * first: 42, * last: 42, * account_id: "biz_xxxxxxxxxxxxxx" * }) */ list(request?: Whop.ListSupportChannelsRequest, requestOptions?: SupportChannelsClient.RequestOptions): Promise>; /** * Opens a support channel between an account's team and a customer. Returns the existing channel if that customer already has one. * * Required permissions: * - `support_chat:create` * * @param {Whop.CreateSupportChannelsRequest} request * @param {SupportChannelsClient.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.supportChannels.create({ * account_id: "biz_xxxxxxxxxxxxxx", * user_id: "user_xxxxxxxxxxxxx" * }) */ create(request: Whop.CreateSupportChannelsRequest, requestOptions?: SupportChannelsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing support channel. * * Required permissions: * - `support_chat:read` * * @param {Whop.RetrieveSupportChannelsRequest} request * @param {SupportChannelsClient.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.supportChannels.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveSupportChannelsRequest, requestOptions?: SupportChannelsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }