// 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 EventsAPI from 'cloudflaredev/resources/radar/bgp/hijacks/events';
import { V4PagePagination } from 'cloudflaredev/pagination';
export class Events extends APIResource {
    list(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.list({}, query);
        }
        return this._client.getAPIList('/radar/bgp/hijacks/events', EventListResponsesV4PagePagination, {
            query,
            ...options,
        });
    }
}
export class EventListResponsesV4PagePagination extends V4PagePagination {
}
(function (Events) {
    Events.EventListResponsesV4PagePagination = EventsAPI.EventListResponsesV4PagePagination;
})(Events || (Events = {}));
//# sourceMappingURL=events.mjs.map