// 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 AsesAPI from 'cloudflaredev/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