/**
 * Cloudflare HEALTHCHECKS API
 *
 * Generated from Cloudflare TypeScript SDK.
 * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service healthchecks
 */
import * as Schema from "effect/Schema";
import type * as HttpClient from "effect/unstable/http/HttpClient";
import * as API from "../client/api.ts";
import type { Credentials } from "../credentials.ts";
import { type DefaultErrors } from "../errors.ts";
export interface GetHealthcheckRequest {
    healthcheckId: string;
    /** Identifier */
    zoneId: string;
}
export declare const GetHealthcheckRequest: Schema.Schema<GetHealthcheckRequest>;
export interface GetHealthcheckResponse {
    /** Identifier */
    id?: string | null;
    /** The hostname or IP address of the origin server to run health checks on. */
    address?: string | null;
    /** A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number | null;
    /** The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number | null;
    createdOn?: string | null;
    /** A human-readable description of the health check. */
    description?: string | null;
    /** The current failure reason if status is unhealthy. */
    failureReason?: string | null;
    /** Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean | null;
        expectedBody?: string | null;
        expectedCodes?: string[] | null;
        followRedirects?: boolean | null;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD" | null;
        path?: string | null;
        port?: number | null;
    } | null;
    /** The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */
    interval?: number | null;
    modifiedOn?: string | null;
    /** A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name?: string | null;
    /** The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number | null;
    /** The current status of the origin server according to the health check. */
    status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
    /** If suspended, no health checks are sent to the origin. */
    suspended?: boolean | null;
    /** Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established" | null;
        port?: number | null;
    } | null;
    /** The timeout (in seconds) before marking the health check as failed. */
    timeout?: number | null;
    /** The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string | null;
}
export declare const GetHealthcheckResponse: Schema.Schema<GetHealthcheckResponse>;
export type GetHealthcheckError = DefaultErrors;
export declare const getHealthcheck: API.OperationMethod<GetHealthcheckRequest, GetHealthcheckResponse, GetHealthcheckError, Credentials | HttpClient.HttpClient>;
export interface ListHealthchecksRequest {
    /** Path param: Identifier */
    zoneId: string;
    page?: number;
    perPage?: number;
}
export declare const ListHealthchecksRequest: Schema.Schema<ListHealthchecksRequest>;
export interface ListHealthchecksResponse {
    result: {
        id?: string | null;
        address?: string | null;
        checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
        consecutiveFails?: number | null;
        consecutiveSuccesses?: number | null;
        createdOn?: string | null;
        description?: string | null;
        failureReason?: string | null;
        httpConfig?: {
            allowInsecure?: boolean | null;
            expectedBody?: string | null;
            expectedCodes?: string[] | null;
            followRedirects?: boolean | null;
            header?: Record<string, unknown> | null;
            method?: "GET" | "HEAD" | null;
            path?: string | null;
            port?: number | null;
        } | null;
        interval?: number | null;
        modifiedOn?: string | null;
        name?: string | null;
        retries?: number | null;
        status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
        suspended?: boolean | null;
        tcpConfig?: {
            method?: "connection_established" | null;
            port?: number | null;
        } | null;
        timeout?: number | null;
        type?: string | null;
    }[];
    resultInfo?: {
        count?: number | null;
        page?: number | null;
        perPage?: number | null;
        totalCount?: number | null;
    } | null;
}
export declare const ListHealthchecksResponse: Schema.Schema<ListHealthchecksResponse>;
export type ListHealthchecksError = DefaultErrors;
export declare const listHealthchecks: API.PaginatedOperationMethod<ListHealthchecksRequest, ListHealthchecksResponse, ListHealthchecksError, Credentials | HttpClient.HttpClient>;
export interface CreateHealthcheckRequest {
    /** Path param: Identifier */
    zoneId: string;
    /** Body param: The hostname or IP address of the origin server to run health checks on. */
    address: string;
    /** Body param: A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name: string;
    /** Body param: A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** Body param: The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number;
    /** Body param: The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number;
    /** Body param: A human-readable description of the health check. */
    description?: string;
    /** Body param: Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean;
        expectedBody?: string;
        expectedCodes?: string[] | null;
        followRedirects?: boolean;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD";
        path?: string;
        port?: number;
    } | null;
    /** Body param: The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locati */
    interval?: number;
    /** Body param: The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number;
    /** Body param: If suspended, no health checks are sent to the origin. */
    suspended?: boolean;
    /** Body param: Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established";
        port?: number;
    } | null;
    /** Body param: The timeout (in seconds) before marking the health check as failed. */
    timeout?: number;
    /** Body param: The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string;
}
export declare const CreateHealthcheckRequest: Schema.Schema<CreateHealthcheckRequest>;
export interface CreateHealthcheckResponse {
    /** Identifier */
    id?: string | null;
    /** The hostname or IP address of the origin server to run health checks on. */
    address?: string | null;
    /** A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number | null;
    /** The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number | null;
    createdOn?: string | null;
    /** A human-readable description of the health check. */
    description?: string | null;
    /** The current failure reason if status is unhealthy. */
    failureReason?: string | null;
    /** Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean | null;
        expectedBody?: string | null;
        expectedCodes?: string[] | null;
        followRedirects?: boolean | null;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD" | null;
        path?: string | null;
        port?: number | null;
    } | null;
    /** The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */
    interval?: number | null;
    modifiedOn?: string | null;
    /** A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name?: string | null;
    /** The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number | null;
    /** The current status of the origin server according to the health check. */
    status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
    /** If suspended, no health checks are sent to the origin. */
    suspended?: boolean | null;
    /** Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established" | null;
        port?: number | null;
    } | null;
    /** The timeout (in seconds) before marking the health check as failed. */
    timeout?: number | null;
    /** The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string | null;
}
export declare const CreateHealthcheckResponse: Schema.Schema<CreateHealthcheckResponse>;
export type CreateHealthcheckError = DefaultErrors;
export declare const createHealthcheck: API.OperationMethod<CreateHealthcheckRequest, CreateHealthcheckResponse, CreateHealthcheckError, Credentials | HttpClient.HttpClient>;
export interface UpdateHealthcheckRequest {
    healthcheckId: string;
    /** Path param: Identifier */
    zoneId: string;
    /** Body param: The hostname or IP address of the origin server to run health checks on. */
    address: string;
    /** Body param: A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name: string;
    /** Body param: A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** Body param: The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number;
    /** Body param: The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number;
    /** Body param: A human-readable description of the health check. */
    description?: string;
    /** Body param: Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean;
        expectedBody?: string;
        expectedCodes?: string[] | null;
        followRedirects?: boolean;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD";
        path?: string;
        port?: number;
    } | null;
    /** Body param: The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locati */
    interval?: number;
    /** Body param: The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number;
    /** Body param: If suspended, no health checks are sent to the origin. */
    suspended?: boolean;
    /** Body param: Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established";
        port?: number;
    } | null;
    /** Body param: The timeout (in seconds) before marking the health check as failed. */
    timeout?: number;
    /** Body param: The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string;
}
export declare const UpdateHealthcheckRequest: Schema.Schema<UpdateHealthcheckRequest>;
export interface UpdateHealthcheckResponse {
    /** Identifier */
    id?: string | null;
    /** The hostname or IP address of the origin server to run health checks on. */
    address?: string | null;
    /** A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number | null;
    /** The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number | null;
    createdOn?: string | null;
    /** A human-readable description of the health check. */
    description?: string | null;
    /** The current failure reason if status is unhealthy. */
    failureReason?: string | null;
    /** Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean | null;
        expectedBody?: string | null;
        expectedCodes?: string[] | null;
        followRedirects?: boolean | null;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD" | null;
        path?: string | null;
        port?: number | null;
    } | null;
    /** The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */
    interval?: number | null;
    modifiedOn?: string | null;
    /** A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name?: string | null;
    /** The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number | null;
    /** The current status of the origin server according to the health check. */
    status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
    /** If suspended, no health checks are sent to the origin. */
    suspended?: boolean | null;
    /** Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established" | null;
        port?: number | null;
    } | null;
    /** The timeout (in seconds) before marking the health check as failed. */
    timeout?: number | null;
    /** The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string | null;
}
export declare const UpdateHealthcheckResponse: Schema.Schema<UpdateHealthcheckResponse>;
export type UpdateHealthcheckError = DefaultErrors;
export declare const updateHealthcheck: API.OperationMethod<UpdateHealthcheckRequest, UpdateHealthcheckResponse, UpdateHealthcheckError, Credentials | HttpClient.HttpClient>;
export interface PatchHealthcheckRequest {
    healthcheckId: string;
    /** Path param: Identifier */
    zoneId: string;
    /** Body param: The hostname or IP address of the origin server to run health checks on. */
    address: string;
    /** Body param: A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name: string;
    /** Body param: A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** Body param: The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number;
    /** Body param: The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number;
    /** Body param: A human-readable description of the health check. */
    description?: string;
    /** Body param: Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean;
        expectedBody?: string;
        expectedCodes?: string[] | null;
        followRedirects?: boolean;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD";
        path?: string;
        port?: number;
    } | null;
    /** Body param: The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locati */
    interval?: number;
    /** Body param: The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number;
    /** Body param: If suspended, no health checks are sent to the origin. */
    suspended?: boolean;
    /** Body param: Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established";
        port?: number;
    } | null;
    /** Body param: The timeout (in seconds) before marking the health check as failed. */
    timeout?: number;
    /** Body param: The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string;
}
export declare const PatchHealthcheckRequest: Schema.Schema<PatchHealthcheckRequest>;
export interface PatchHealthcheckResponse {
    /** Identifier */
    id?: string | null;
    /** The hostname or IP address of the origin server to run health checks on. */
    address?: string | null;
    /** A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number | null;
    /** The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number | null;
    createdOn?: string | null;
    /** A human-readable description of the health check. */
    description?: string | null;
    /** The current failure reason if status is unhealthy. */
    failureReason?: string | null;
    /** Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean | null;
        expectedBody?: string | null;
        expectedCodes?: string[] | null;
        followRedirects?: boolean | null;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD" | null;
        path?: string | null;
        port?: number | null;
    } | null;
    /** The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */
    interval?: number | null;
    modifiedOn?: string | null;
    /** A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name?: string | null;
    /** The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number | null;
    /** The current status of the origin server according to the health check. */
    status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
    /** If suspended, no health checks are sent to the origin. */
    suspended?: boolean | null;
    /** Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established" | null;
        port?: number | null;
    } | null;
    /** The timeout (in seconds) before marking the health check as failed. */
    timeout?: number | null;
    /** The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string | null;
}
export declare const PatchHealthcheckResponse: Schema.Schema<PatchHealthcheckResponse>;
export type PatchHealthcheckError = DefaultErrors;
export declare const patchHealthcheck: API.OperationMethod<PatchHealthcheckRequest, PatchHealthcheckResponse, PatchHealthcheckError, Credentials | HttpClient.HttpClient>;
export interface DeleteHealthcheckRequest {
    healthcheckId: string;
    /** Identifier */
    zoneId: string;
}
export declare const DeleteHealthcheckRequest: Schema.Schema<DeleteHealthcheckRequest>;
export interface DeleteHealthcheckResponse {
    /** Identifier */
    id?: string | null;
}
export declare const DeleteHealthcheckResponse: Schema.Schema<DeleteHealthcheckResponse>;
export type DeleteHealthcheckError = DefaultErrors;
export declare const deleteHealthcheck: API.OperationMethod<DeleteHealthcheckRequest, DeleteHealthcheckResponse, DeleteHealthcheckError, Credentials | HttpClient.HttpClient>;
export interface GetPreviewRequest {
    healthcheckId: string;
    /** Identifier */
    zoneId: string;
}
export declare const GetPreviewRequest: Schema.Schema<GetPreviewRequest>;
export interface GetPreviewResponse {
    /** Identifier */
    id?: string | null;
    /** The hostname or IP address of the origin server to run health checks on. */
    address?: string | null;
    /** A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number | null;
    /** The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number | null;
    createdOn?: string | null;
    /** A human-readable description of the health check. */
    description?: string | null;
    /** The current failure reason if status is unhealthy. */
    failureReason?: string | null;
    /** Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean | null;
        expectedBody?: string | null;
        expectedCodes?: string[] | null;
        followRedirects?: boolean | null;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD" | null;
        path?: string | null;
        port?: number | null;
    } | null;
    /** The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */
    interval?: number | null;
    modifiedOn?: string | null;
    /** A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name?: string | null;
    /** The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number | null;
    /** The current status of the origin server according to the health check. */
    status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
    /** If suspended, no health checks are sent to the origin. */
    suspended?: boolean | null;
    /** Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established" | null;
        port?: number | null;
    } | null;
    /** The timeout (in seconds) before marking the health check as failed. */
    timeout?: number | null;
    /** The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string | null;
}
export declare const GetPreviewResponse: Schema.Schema<GetPreviewResponse>;
export type GetPreviewError = DefaultErrors;
export declare const getPreview: API.OperationMethod<GetPreviewRequest, GetPreviewResponse, GetPreviewError, Credentials | HttpClient.HttpClient>;
export interface CreatePreviewRequest {
    /** Path param: Identifier */
    zoneId: string;
    /** Body param: The hostname or IP address of the origin server to run health checks on. */
    address: string;
    /** Body param: A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name: string;
    /** Body param: A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** Body param: The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number;
    /** Body param: The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number;
    /** Body param: A human-readable description of the health check. */
    description?: string;
    /** Body param: Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean;
        expectedBody?: string;
        expectedCodes?: string[] | null;
        followRedirects?: boolean;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD";
        path?: string;
        port?: number;
    } | null;
    /** Body param: The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locati */
    interval?: number;
    /** Body param: The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number;
    /** Body param: If suspended, no health checks are sent to the origin. */
    suspended?: boolean;
    /** Body param: Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established";
        port?: number;
    } | null;
    /** Body param: The timeout (in seconds) before marking the health check as failed. */
    timeout?: number;
    /** Body param: The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string;
}
export declare const CreatePreviewRequest: Schema.Schema<CreatePreviewRequest>;
export interface CreatePreviewResponse {
    /** Identifier */
    id?: string | null;
    /** The hostname or IP address of the origin server to run health checks on. */
    address?: string | null;
    /** A list of regions from which to run health checks. Null means Cloudflare will pick a default region. */
    checkRegions?: ("WNAM" | "ENAM" | "WEU" | "EEU" | "NSAM" | "SSAM" | "OC" | "ME" | "NAF" | "SAF" | "IN" | "SEAS" | "NEAS" | "ALL_REGIONS")[] | null;
    /** The number of consecutive fails required from a health check before changing the health to unhealthy. */
    consecutiveFails?: number | null;
    /** The number of consecutive successes required from a health check before changing the health to healthy. */
    consecutiveSuccesses?: number | null;
    createdOn?: string | null;
    /** A human-readable description of the health check. */
    description?: string | null;
    /** The current failure reason if status is unhealthy. */
    failureReason?: string | null;
    /** Parameters specific to an HTTP or HTTPS health check. */
    httpConfig?: {
        allowInsecure?: boolean | null;
        expectedBody?: string | null;
        expectedCodes?: string[] | null;
        followRedirects?: boolean | null;
        header?: Record<string, unknown> | null;
        method?: "GET" | "HEAD" | null;
        path?: string | null;
        port?: number | null;
    } | null;
    /** The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations. */
    interval?: number | null;
    modifiedOn?: string | null;
    /** A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed. */
    name?: string | null;
    /** The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately. */
    retries?: number | null;
    /** The current status of the origin server according to the health check. */
    status?: "unknown" | "healthy" | "unhealthy" | "suspended" | null;
    /** If suspended, no health checks are sent to the origin. */
    suspended?: boolean | null;
    /** Parameters specific to TCP health check. */
    tcpConfig?: {
        method?: "connection_established" | null;
        port?: number | null;
    } | null;
    /** The timeout (in seconds) before marking the health check as failed. */
    timeout?: number | null;
    /** The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'. */
    type?: string | null;
}
export declare const CreatePreviewResponse: Schema.Schema<CreatePreviewResponse>;
export type CreatePreviewError = DefaultErrors;
export declare const createPreview: API.OperationMethod<CreatePreviewRequest, CreatePreviewResponse, CreatePreviewError, Credentials | HttpClient.HttpClient>;
export interface DeletePreviewRequest {
    healthcheckId: string;
    /** Identifier */
    zoneId: string;
}
export declare const DeletePreviewRequest: Schema.Schema<DeletePreviewRequest>;
export interface DeletePreviewResponse {
    /** Identifier */
    id?: string | null;
}
export declare const DeletePreviewResponse: Schema.Schema<DeletePreviewResponse>;
export type DeletePreviewError = DefaultErrors;
export declare const deletePreview: API.OperationMethod<DeletePreviewRequest, DeletePreviewResponse, DeletePreviewError, Credentials | HttpClient.HttpClient>;
//# sourceMappingURL=healthchecks.d.ts.map