import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; export declare class Rules extends APIResource { /** * Updates all snippet rules belonging to the zone. */ update(params: RuleUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Fetches all snippet rules belonging to the zone. */ list(params: RuleListParams, options?: Core.RequestOptions): Core.APIPromise; /** * Deletes all snippet rules belonging to the zone. */ delete(params: RuleDeleteParams, options?: Core.RequestOptions): Core.APIPromise; } /** * Contain the response result. */ export type RuleUpdateResponse = unknown; /** * Contain the response result. */ export type RuleListResponse = unknown; /** * Contain the response result. */ export type RuleDeleteResponse = unknown; export interface RuleUpdateParams { /** * Path param: Use this field to specify the unique ID of the zone. */ zone_id: string; /** * Body param: Lists snippet rules. */ rules: Array; } export declare namespace RuleUpdateParams { /** * Define a snippet rule. */ interface Rule { /** * Define the expression that determines which traffic matches the rule. */ expression: string; /** * Identify the snippet. */ snippet_name: string; /** * Provide an informative description of the rule. */ description?: string; /** * Indicate whether to execute the rule. */ enabled?: boolean; } } export interface RuleListParams { /** * Use this field to specify the unique ID of the zone. */ zone_id: string; } export interface RuleDeleteParams { /** * Use this field to specify the unique ID of the zone. */ zone_id: string; } export declare namespace Rules { export { type RuleUpdateResponse as RuleUpdateResponse, type RuleListResponse as RuleListResponse, type RuleDeleteResponse as RuleDeleteResponse, type RuleUpdateParams as RuleUpdateParams, type RuleListParams as RuleListParams, type RuleDeleteParams as RuleDeleteParams, }; } //# sourceMappingURL=rules.d.ts.map