"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Hijacks = void 0;
const resource_1 = require("cloudflare/resource");
const core_1 = require("cloudflare/core");
class Hijacks extends resource_1.APIResource {
    events(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.events({}, query);
        }
        return this._client.get('/radar/bgp/hijacks/events', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
exports.Hijacks = Hijacks;
(function (Hijacks) {
})(Hijacks = exports.Hijacks || (exports.Hijacks = {}));
//# sourceMappingURL=hijacks.js.map