@adguard/agtree
Version:
Tool set for working with adblock filter lists
23 lines (22 loc) • 711 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;