@adguard/agtree
Version:
Tool set for working with adblock filter lists
21 lines (20 loc) • 696 B
TypeScript
/**
* @file Utility functions for working with modifier nodes
*/
import { type Modifier, type ModifierList } from '../nodes/index.js';
/**
* Creates a modifier node
*
* @param name Name of the modifier
* @param value Value of the modifier
* @param exception Whether the modifier is an exception
* @returns Modifier node
*/
export declare function createModifierNode(name: string, value?: string | undefined, exception?: boolean): Modifier;
/**
* Creates a modifier list node
*
* @param modifiers Modifiers to put in the list (optional, defaults to an empty list)
* @returns Modifier list node
*/
export declare function createModifierListNode(modifiers?: Modifier[]): ModifierList;