// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
export class Previews extends APIResource {
    /**
     * Create a new preview health check.
     */
    create(zoneIdentifier, body, options) {
        return this._client.post(`/zones/${zoneIdentifier}/healthchecks/preview`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Delete a health check.
     */
    delete(zoneIdentifier, identifier, options) {
        return this._client.delete(`/zones/${zoneIdentifier}/healthchecks/preview/${identifier}`, options)._thenUnwrap((obj) => obj.result);
    }
    /**
     * Fetch a single configured health check preview.
     */
    get(zoneIdentifier, identifier, options) {
        return this._client.get(`/zones/${zoneIdentifier}/healthchecks/preview/${identifier}`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (Previews) {
})(Previews || (Previews = {}));
//# sourceMappingURL=previews.mjs.map