// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as MaliciousAPI from 'cloudflare/resources/radar/email/security/top/tlds/malicious';
import * as SpamAPI from 'cloudflare/resources/radar/email/security/top/tlds/spam';
import * as SpoofAPI from 'cloudflare/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