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 AccessTokensClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class AccessTokensClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AccessTokensClient.Options); /** * Creates a short-lived access token for Whop's web and mobile embedded components. With API key authentication, pass `account_id` or `user_id`; with OAuth, the token is issued for the OAuth user. * * @param {Whop.CreateAccessTokensRequest} request * @param {AccessTokensClient.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.accessTokens.create() */ create(request?: Whop.CreateAccessTokensRequest, requestOptions?: AccessTokensClient.RequestOptions): core.HttpResponsePromise; private __create; }