import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; export type { CloudflareOpError, CloudflareOpContext }; declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const InvalidObjectIdentifier_base: S.Class, import("effect/Cause").YieldableError>; export declare class InvalidObjectIdentifier extends /*@__PURE__*/ InvalidObjectIdentifier_base { } declare const NotAuthorized_base: S.Class, import("effect/Cause").YieldableError>; export declare class NotAuthorized extends /*@__PURE__*/ NotAuthorized_base { } declare const ZoneNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class ZoneNotFound extends /*@__PURE__*/ ZoneNotFound_base { } export interface GetSmartRoutingRequest { /** Specifies the zone associated with the API call. */ zoneId: string; } export declare const GetSmartRoutingRequest: S.Schema; export type SmartRoutingGetResponseValue = "on" | "off"; export declare const SmartRoutingGetResponseValue: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetSmartRoutingResponse { /** Specifies the identifier of the Argo Smart Routing setting. */ id: string; /** Specifies if the setting is editable. */ editable: boolean; /** Specifies the enablement value of Argo Smart Routing. */ value: SmartRoutingGetResponseValue; /** Specifies the time when the setting was last modified. */ modifiedOn?: string | null; } export declare const GetSmartRoutingResponse: S.Schema; export interface GetTieredCachingRequest { /** Identifier. */ zoneId: string; } export declare const GetTieredCachingRequest: S.Schema; export type TieredCachingGetResponseId = "tiered_caching"; export declare const TieredCachingGetResponseId: any; export type TieredCachingGetResponseValue = "on" | "off"; export declare const TieredCachingGetResponseValue: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetTieredCachingResponse { /** The identifier of the caching setting. */ id: TieredCachingGetResponseId; /** Whether the setting is editable. */ editable: boolean; /** Value of the Tiered Cache zone setting. */ value: TieredCachingGetResponseValue; /** Last time this setting was modified. */ modifiedOn?: string | null; } export declare const GetTieredCachingResponse: S.Schema; export type SmartRoutingEditRequestValue = "on" | "off"; export declare const SmartRoutingEditRequestValue: any; export interface PatchSmartRoutingRequest { /** Specifies the zone associated with the API call. */ zoneId: string; /** Specifies the enablement value of Argo Smart Routing. */ value: SmartRoutingEditRequestValue | (string & {}); } export declare const PatchSmartRoutingRequest: S.Schema; export type SmartRoutingEditResponseValue = "on" | "off"; export declare const SmartRoutingEditResponseValue: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchSmartRoutingResponse { /** Specifies the identifier of the Argo Smart Routing setting. */ id: string; /** Specifies if the setting is editable. */ editable: boolean; /** Specifies the enablement value of Argo Smart Routing. */ value: SmartRoutingEditResponseValue; /** Specifies the time when the setting was last modified. */ modifiedOn?: string | null; } export declare const PatchSmartRoutingResponse: S.Schema; export type TieredCachingEditRequestValue = "on" | "off"; export declare const TieredCachingEditRequestValue: any; export interface PatchTieredCachingRequest { /** Identifier. */ zoneId: string; /** Enables Tiered Caching. */ value: TieredCachingEditRequestValue | (string & {}); } export declare const PatchTieredCachingRequest: S.Schema; export type TieredCachingEditResponseId = "tiered_caching"; export declare const TieredCachingEditResponseId: any; export type TieredCachingEditResponseValue = "on" | "off"; export declare const TieredCachingEditResponseValue: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchTieredCachingResponse { /** The identifier of the caching setting. */ id: TieredCachingEditResponseId; /** Whether the setting is editable. */ editable: boolean; /** Value of the Tiered Cache zone setting. */ value: TieredCachingEditResponseValue; /** Last time this setting was modified. */ modifiedOn?: string | null; } export declare const PatchTieredCachingResponse: S.Schema; export type GetSmartRoutingError = InvalidObjectIdentifier | NotAuthorized | Forbidden | CloudflareOpError; /** Retrieves the value of Argo Smart Routing enablement setting. */ export declare const getSmartRouting: API.OperationMethod; export type GetTieredCachingError = InvalidObjectIdentifier | ZoneNotFound | Forbidden | CloudflareOpError; /** Tiered Cache works by dividing Cloudflare's data centers into a hierarchy of lower-tiers and upper-tiers. If content is not cached in lower-tier data centers (generally the ones closest to a visitor), the lower-tier must ask an upper-tier to see if it has the content. If the upper-tier does not have the content, only the upper-tier can ask the origin for content. This practice improves bandwidth efficiency by limiting the number of data centers that can ask the origin for content, which reduces origin load and makes websites more cost-effective to operate. Additionally, Tiered Cache concentrates connections to origin servers so they come from a small number of data centers rather than the full set of network locations. This results in fewer open connections using server resources. */ export declare const getTieredCaching: API.OperationMethod; export type PatchSmartRoutingError = InvalidObjectIdentifier | NotAuthorized | Forbidden | CloudflareOpError; /** Configures the value of the Argo Smart Routing enablement setting. */ export declare const patchSmartRouting: API.OperationMethod; export type PatchTieredCachingError = InvalidObjectIdentifier | Forbidden | CloudflareOpError; /** Tiered Cache works by dividing Cloudflare's data centers into a hierarchy of lower-tiers and upper-tiers. If content is not cached in lower-tier data centers (generally the ones closest to a visitor), the lower-tier must ask an upper-tier to see if it has the content. If the upper-tier does not have the content, only the upper-tier can ask the origin for content. This practice improves bandwidth efficiency by limiting the number of data centers that can ask the origin for content, which reduces origin load and makes websites more cost-effective to operate. Additionally, Tiered Cache concentrates connections to origin servers so they come from a small number of data centers rather than the full set of network locations. This results in fewer open connections using server resources. */ export declare const patchTieredCaching: API.OperationMethod; //# sourceMappingURL=argo.d.ts.map