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 PermissionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Permission is one action, such as `stats:read`, paired with whether your credential is granted it on a given resource. It answers for whatever you authenticated with, so you can decide what to show or attempt instead of discovering a `403`. * * Use the Permissions API to check an account, product, experience, or app, narrowing to the actions you care about. It reports only your own access — to manage who else can reach an account, use the Team Members API. */ export declare class PermissionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: PermissionsClient.Options); /** * Lists permission actions and whether the calling credential is granted each one for a resource. Answers for whichever identity authenticated the request — a user session, an OAuth token, or an account or app API key — so it never describes who else can reach the resource. * * @param {Whop.ListPermissionsRequest} request * @param {PermissionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.permissions.list({ * resource_id: "resource_id" * }) */ list(request: Whop.ListPermissionsRequest, requestOptions?: PermissionsClient.RequestOptions): core.HttpResponsePromise; private __list; }