// 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 MaliciousAPI from 'cloudflaredev/resources/radar/email/security/top/tlds/malicious';
import * as SpamAPI from 'cloudflaredev/resources/radar/email/security/top/tlds/spam';
import * as SpoofAPI from 'cloudflaredev/resources/radar/email/security/top/tlds/spoof';
export class Tlds extends APIResource {
    constructor() {
        super(...arguments);
        this.malicious = new MaliciousAPI.Malicious(this._client);
        this.spam = new SpamAPI.Spam(this._client);
        this.spoof = new SpoofAPI.Spoof(this._client);
    }
    get(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get({}, query);
        }
        return this._client.get('/radar/email/security/top/tlds', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (Tlds) {
    Tlds.Malicious = MaliciousAPI.Malicious;
    Tlds.Spam = SpamAPI.Spam;
    Tlds.Spoof = SpoofAPI.Spoof;
})(Tlds || (Tlds = {}));
//# sourceMappingURL=tlds.mjs.map