// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import { isRequestOptions } from 'cloudflaredev/core';
export class Currents extends APIResource {
    get(zone, query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get(zone, {}, query);
        }
        return this._client.get(`/zones/${zone}/spectrum/analytics/aggregate/current`, {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (Currents) {
})(Currents || (Currents = {}));
//# sourceMappingURL=currents.mjs.map