// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Hijacks extends APIResource {
    events(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.events({}, query);
        }
        return this._client.get('/radar/bgp/hijacks/events', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (Hijacks) {
})(Hijacks || (Hijacks = {}));
//# sourceMappingURL=hijacks.mjs.map