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 CourseStudentsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class CourseStudentsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CourseStudentsClient.Options); /** * Returns a paginated list of students enrolled in a course, with optional name filtering. * * Required permissions: * - `courses:read` * - `course_analytics:read` * * @param {Whop.ListCourseStudentsRequest} request * @param {CourseStudentsClient.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.courseStudents.list({ * first: 42, * last: 42, * course_id: "cors_xxxxxxxxxxxxx" * }) */ list(request: Whop.ListCourseStudentsRequest, requestOptions?: CourseStudentsClient.RequestOptions): Promise>; /** * Retrieves the details of an existing course student. * * Required permissions: * - `courses:read` * - `course_analytics:read` * * @param {Whop.RetrieveCourseStudentsRequest} request * @param {CourseStudentsClient.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.courseStudents.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveCourseStudentsRequest, requestOptions?: CourseStudentsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }