import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import type * as Whop from "../../../index.mjs"; import { ReportsClient } from "../resources/reports/client/Client.mjs"; import { TimeSeriesClient } from "../resources/timeSeries/client/Client.mjs"; export declare namespace StatsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Stats represent aggregated activity for an account over time. They help you understand revenue, transactions, disputes, members, referrals, and advertising performance across reporting periods like days, weeks, or months. * * Use the Stats API to list the metrics you can chart and retrieve one as a time series over a date range, or list reports and retrieve aggregates that are not bucketed over time, such as platform-wide payment trends. */ export declare class StatsClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _reports: ReportsClient | undefined; protected _timeSeries: TimeSeriesClient | undefined; constructor(options?: StatsClient.Options); get reports(): ReportsClient; get timeSeries(): TimeSeriesClient; /** * @deprecated * * Deprecated. Lists every metric without saying which ones you can chart. List chartable metrics with `GET /stats/time_series`, and aggregates that are not bucketed over time with `GET /stats/reports`. * * @param {StatsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.stats.list() */ list(requestOptions?: StatsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * @deprecated * * Deprecated compatibility endpoint. Retrieve a metric's time series with `GET /stats/time_series/{metric}` instead. * * @param {Whop.RetrieveStatsRequest} request * @param {StatsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.stats.retrieve({ * metric: "metric", * from: "from", * to: "to", * ad_campaign_ids: ["adcamp_xxxxxxxxxxxxxx"], * ad_group_ids: ["adgrp_xxxxxxxxxxxxxx"], * ad_ids: ["ad_xxxxxxxxxxxxxx"] * }) */ retrieve(request: Whop.RetrieveStatsRequest, requestOptions?: StatsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }