@adguard/agtree
Version:
Tool set for working with adblock filter lists
13 lines (12 loc) • 505 B
TypeScript
import { type Modifier } from '../nodes/index.js';
import { type ValidationResult } from './helpers.js';
/**
* Checks whether the value for given `modifier` is valid.
*
* @param modifier Modifier AST node.
* @param valueFormat Value format for the modifier.
* @param valueFormatFlags Optional; RegExp flags for the value format.
*
* @returns Validation result.
*/
export declare const validateValue: (modifier: Modifier, valueFormat: string, valueFormatFlags?: string | null) => ValidationResult;