// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as AsesAPI from 'cloudflare/resources/radar/bgp/top/ases';
export class Top extends APIResource {
    constructor() {
        super(...arguments);
        this.ases = new AsesAPI.Ases(this._client);
    }
    prefixes(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.prefixes({}, query);
        }
        return this._client.get('/radar/bgp/top/prefixes', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (Top) {
    Top.Ases = AsesAPI.Ases;
})(Top || (Top = {}));
//# sourceMappingURL=top.mjs.map