import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Whop from "../../../index.mjs"; export declare namespace ReactionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ReactionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ReactionsClient.Options); /** * Returns a paginated list of emoji reactions on a specific message or forum post, sorted by most recent. * * Required permissions (one of): * - `chat:read` * - `dms:read` * - `forum:read` * - `livestream:chat:read` * - `support_chat:read` * * @param {Whop.ListReactionsRequest} request * @param {ReactionsClient.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.reactions.list({ * first: 42, * last: 42, * resource_id: "resource_id" * }) */ list(request: Whop.ListReactionsRequest, requestOptions?: ReactionsClient.RequestOptions): Promise>; /** * Add an emoji reaction or poll vote to a message or forum post. In forums, the reaction is always a like. * * Required permissions (one of): * - `chat:read` * - `dms:read` * - `forum:read` * - `livestream:chat:read` * - `support_chat:read` * * @param {Whop.CreateReactionsRequest} request * @param {ReactionsClient.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.reactions.create({ * resource_id: "resource_id" * }) */ create(request: Whop.CreateReactionsRequest, requestOptions?: ReactionsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing reaction. * * Required permissions (one of): * - `chat:read` * - `dms:read` * - `forum:read` * - `livestream:chat:read` * - `support_chat:read` * * @param {Whop.RetrieveReactionsRequest} request * @param {ReactionsClient.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.reactions.retrieve({ * id: "reac_xxxxxxxxxxxxxxxxxxxxxx" * }) */ retrieve(request: Whop.RetrieveReactionsRequest, requestOptions?: ReactionsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Remove an emoji reaction from a message or forum post. Only the reaction author or a channel admin can remove a reaction. * * Required permissions (one of): * - `chat:read` * - `dms:read` * - `forum:read` * - `livestream:chat:read` * - `support_chat:read` * * @param {Whop.DeleteReactionsRequest} request * @param {ReactionsClient.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.reactions.delete({ * id: "reac_xxxxxxxxxxxxxxxxxxxxxx" * }) */ delete(request: Whop.DeleteReactionsRequest, requestOptions?: ReactionsClient.RequestOptions): core.HttpResponsePromise; private __delete; }