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 CourseChaptersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class CourseChaptersClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CourseChaptersClient.Options); /** * Returns a paginated list of chapters within a course, ordered by position. * * Required permissions: * - `courses:read` * * @param {Whop.ListCourseChaptersRequest} request * @param {CourseChaptersClient.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.courseChapters.list({ * first: 42, * last: 42, * course_id: "cors_xxxxxxxxxxxxx" * }) */ list(request: Whop.ListCourseChaptersRequest, requestOptions?: CourseChaptersClient.RequestOptions): Promise>; /** * Create a new chapter within a course to organize lessons into sections. * * Required permissions: * - `courses:update` * * @param {Whop.CreateCourseChaptersRequest} request * @param {CourseChaptersClient.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.courseChapters.create({ * course_id: "cors_xxxxxxxxxxxxx" * }) */ create(request: Whop.CreateCourseChaptersRequest, requestOptions?: CourseChaptersClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves the details of an existing course chapter. * * Required permissions: * - `courses:read` * * @param {Whop.RetrieveCourseChaptersRequest} request * @param {CourseChaptersClient.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.courseChapters.retrieve({ * id: "chap_xxxxxxxxxxxxx" * }) */ retrieve(request: Whop.RetrieveCourseChaptersRequest, requestOptions?: CourseChaptersClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Permanently delete a chapter and all of its lessons from a course. * * Required permissions: * - `courses:update` * * @param {Whop.DeleteCourseChaptersRequest} request * @param {CourseChaptersClient.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.courseChapters.delete({ * id: "chap_xxxxxxxxxxxxx" * }) */ delete(request: Whop.DeleteCourseChaptersRequest, requestOptions?: CourseChaptersClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Update a chapter's title within a course. * * Required permissions: * - `courses:update` * * @param {Whop.UpdateCourseChaptersRequest} request * @param {CourseChaptersClient.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.courseChapters.update({ * id: "chap_xxxxxxxxxxxxx", * title: "title" * }) */ update(request: Whop.UpdateCourseChaptersRequest, requestOptions?: CourseChaptersClient.RequestOptions): core.HttpResponsePromise; private __update; }