@adguard/agtree
Version:
Tool set for working with adblock filter lists
15 lines (14 loc) • 459 B
TypeScript
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;
}