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 AiChatsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class AiChatsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AiChatsClient.Options); /** * Returns a paginated list of AI chat threads for the current authenticated user. * * @param {Whop.ListAiChatsRequest} request * @param {AiChatsClient.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.aiChats.list({ * first: 42, * last: 42 * }) */ list(request?: Whop.ListAiChatsRequest, requestOptions?: AiChatsClient.RequestOptions): Promise>; /** * Create a new AI chat thread and send the first message to the AI agent. * * Required permissions: * - `ai_chat:create` * * @param {Whop.CreateAiChatsRequest} request * @param {AiChatsClient.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.aiChats.create({ * message_text: "message_text" * }) */ create(request: Whop.CreateAiChatsRequest, requestOptions?: AiChatsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing AI chat. * * @param {Whop.RetrieveAiChatsRequest} request * @param {AiChatsClient.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.aiChats.retrieve({ * id: "aich_xxxxxxxxxxxxx" * }) */ retrieve(request: Whop.RetrieveAiChatsRequest, requestOptions?: AiChatsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Delete an AI chat thread so it no longer appears in the user's chat list. * * Required permissions: * - `ai_chat:delete` * * @param {Whop.DeleteAiChatsRequest} request * @param {AiChatsClient.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.aiChats.delete({ * id: "aich_xxxxxxxxxxxxx" * }) */ delete(request: Whop.DeleteAiChatsRequest, requestOptions?: AiChatsClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Update an AI chat's title, notification preferences, or associated account context. * * Required permissions: * - `ai_chat:update` * * @param {Whop.UpdateAiChatsRequest} request * @param {AiChatsClient.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.aiChats.update({ * id: "aich_xxxxxxxxxxxxx" * }) */ update(request: Whop.UpdateAiChatsRequest, requestOptions?: AiChatsClient.RequestOptions): core.HttpResponsePromise; private __update; }