// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import { isRequestOptions } from 'cloudflaredev/core';
import * as TopAPI from 'cloudflaredev/resources/radar/netflows/top';
export class Netflows extends APIResource {
    constructor() {
        super(...arguments);
        this.top = new TopAPI.Top(this._client);
    }
    timeseries(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.timeseries({}, query);
        }
        return this._client.get('/radar/netflows/timeseries', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (Netflows) {
    Netflows.Top = TopAPI.Top;
})(Netflows || (Netflows = {}));
//# sourceMappingURL=netflows.mjs.map