/** * Sentinel Rule Service * * Provides methods to query Sentinel rules from ZooKeeper */ import { FlowRule, DegradeRule, ParamFlowRule, AuthorityRule, AllRulesResponse } from '../types/index.js'; export declare class SentinelRuleService { private readonly zkClient; constructor(); /** * Get flow rules for an application */ getFlowRules(zkAddress: string, appName: string): Promise; /** * Get degrade (circuit breaker) rules for an application */ getDegradeRules(zkAddress: string, appName: string): Promise; /** * Get param flow (hot parameter) rules for an application * Note: ParamFlowRule data in ZK may be wrapped in { rule: {...} } format */ getParamFlowRules(zkAddress: string, appName: string): Promise; /** * Get authority rules for an application */ getAuthorityRules(zkAddress: string, appName: string): Promise; /** * Get all rules for an application */ getAllRules(zkAddress: string, appName: string): Promise; /** * List all applications that have Sentinel rules */ listApplications(zkAddress: string): Promise; /** * Check if an application has any rules configured */ hasRules(zkAddress: string, appName: string): Promise; /** * Generic method to get rules from ZK */ private getRules; } //# sourceMappingURL=SentinelRuleService.d.ts.map