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 ClaimLinksClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ClaimLinksClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ClaimLinksClient.Options); /** * Retrieves a funded claim link by ID or by its public claim code. By ID, the caller needs `airdrop_link:basic:read` on the funding account, or must own the funding personal account; `code` and `claim_url` are `null` without `airdrop_link:manage` on the funding account or `payout:withdraw_funds` on the personal account. A claim code previews the sender, amount, expiry, and claim availability without authentication. Treat codes as secrets: anyone holding one can claim after signing in. * * @param {Whop.RetrieveClaimLinksRequest} request * @param {ClaimLinksClient.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.claimLinks.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveClaimLinksRequest, requestOptions?: ClaimLinksClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Claims a funded link into the authenticated user's personal balance and returns the updated link. Requires a signed-in user and the public claim code; account API keys cannot claim on a recipient's behalf. Each user can claim a link once. Reuse the same `Idempotency-Key` when retrying the same request. On-chain claims may take several minutes to complete. * * @param {Whop.ClaimClaimLinksRequest} request * @param {ClaimLinksClient.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.claimLinks.claim({ * id: "id" * }) */ claim(request: Whop.ClaimClaimLinksRequest, requestOptions?: ClaimLinksClient.RequestOptions): core.HttpResponsePromise; private __claim; }