// 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 LocationsAPI from 'cloudflaredev/resources/radar/traffic-anomalies/locations';
export class TrafficAnomalies extends APIResource {
    constructor() {
        super(...arguments);
        this.locations = new LocationsAPI.Locations(this._client);
    }
    get(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get({}, query);
        }
        return this._client.get('/radar/traffic_anomalies', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (TrafficAnomalies) {
    TrafficAnomalies.Locations = LocationsAPI.Locations;
})(TrafficAnomalies || (TrafficAnomalies = {}));
//# sourceMappingURL=traffic-anomalies.mjs.map