// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as DomainAPI from 'cloudflare/resources/radar/ranking/domain';
export class Ranking extends APIResource {
    constructor() {
        super(...arguments);
        this.domain = new DomainAPI.Domain(this._client);
    }
    timeseriesGroups(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.timeseriesGroups({}, query);
        }
        return this._client.get('/radar/ranking/timeseries_groups', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    top(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.top({}, query);
        }
        return this._client.get('/radar/ranking/top', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (Ranking) {
    Ranking.Domain = DomainAPI.Domain;
})(Ranking || (Ranking = {}));
//# sourceMappingURL=ranking.mjs.map