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 LivestreamsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Livestream represents a live video broadcast in an experience. After a recorded livestream ends, members can watch the replay, and moderators can pin the best recordings to feature them. * * Use the Livestreams API to [list an experience's livestreams](/api-reference/beta/livestreams/list-livestreams), [retrieve one](/api-reference/beta/livestreams/retrieve-livestream) with its recording, and [pin](/api-reference/beta/livestreams/pin-livestream) or [unpin](/api-reference/beta/livestreams/unpin-livestream) recordings. */ export declare class LivestreamsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: LivestreamsClient.Options); /** * Lists the livestreams in an experience, live and ended, newest first. * * @param {Whop.ListLivestreamsRequest} request * @param {LivestreamsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.livestreams.list({ * experience_id: "experience_id" * }) */ list(request: Whop.ListLivestreamsRequest, requestOptions?: LivestreamsClient.RequestOptions): Promise>; /** * Retrieves a livestream by ID. * * @param {Whop.RetrieveLivestreamsRequest} request * @param {LivestreamsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.livestreams.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveLivestreamsRequest, requestOptions?: LivestreamsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Pins an ended livestream's recording so everyone in the experience sees it featured. Pinning it again keeps the original `pinned_at`. * * @param {Whop.PinLivestreamsRequest} request * @param {LivestreamsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.livestreams.pin({ * id: "id" * }) */ pin(request: Whop.PinLivestreamsRequest, requestOptions?: LivestreamsClient.RequestOptions): core.HttpResponsePromise; private __pin; /** * Unpins a livestream's recording so it is no longer featured in the experience. * * @param {Whop.UnpinLivestreamsRequest} request * @param {LivestreamsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.livestreams.unpin({ * id: "id" * }) */ unpin(request: Whop.UnpinLivestreamsRequest, requestOptions?: LivestreamsClient.RequestOptions): core.HttpResponsePromise; private __unpin; }