UNPKG

@adguard/agtree

Version:
15 lines (14 loc) 459 B
import { type CosmeticRuleType } from '../nodes/index.js'; /** * Utility functions for categorizing rules. */ export declare class RuleCategorizer { /** * Determines the type of a given raw cosmetic rule. * * @param rawRule Raw rule to check. * * @returns Type of the cosmetic rule or `null` if the rule is cannot be parsed as a cosmetic rule. */ static getCosmeticRuleType(rawRule: string): CosmeticRuleType | null; }