import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class BaseRules extends APIResource { static readonly _key: readonly ['snippets', 'rules']; /** * Updates all snippet rules belonging to the zone. */ update(params: RuleUpdateParams, options?: RequestOptions): APIPromise; /** * Fetches all snippet rules belonging to the zone. */ list(params: RuleListParams, options?: RequestOptions): APIPromise; /** * Deletes all snippet rules belonging to the zone. */ delete(params: RuleDeleteParams, options?: RequestOptions): APIPromise; /** * Fetches all snippet rules belonging to the zone. */ get(params: RuleGetParams, options?: RequestOptions): APIPromise; } export declare class Rules extends BaseRules { } /** * Contain the response result. */ export type RuleUpdateResponse = unknown; /** * Contain the response result. */ export type RuleListResponse = unknown; /** * Contain the response result. */ export type RuleDeleteResponse = unknown; /** * Contain the response result. */ export type RuleGetResponse = 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 interface RuleGetParams { /** * 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 RuleGetResponse as RuleGetResponse, type RuleUpdateParams as RuleUpdateParams, type RuleListParams as RuleListParams, type RuleDeleteParams as RuleDeleteParams, type RuleGetParams as RuleGetParams, }; } //# sourceMappingURL=rules.d.mts.map