import { MatchResult, ParsedRule } from './types'; /** * Convert a single Adblock network pattern into a RegExp. * * Supported tokens (the subset that covers the vast majority of real rules): * || domain anchor — matches the start of a host or any subdomain boundary * | address-boundary anchor at start/end * * wildcard (any sequence) * ^ separator character * * Adblock `$options` (e.g. `$third-party`, `$domain=`) are intentionally * stripped: this MVP answers "does the URL pattern match?", not the full * request-context decision an in-browser engine makes. That limitation is * documented rather than hidden, because silently pretending to honor options * would give users false confidence. */ export declare function ruleToRegex(pattern: string): RegExp; /** * Decide whether `url` is blocked by `rules`. * * Exception (`@@`) rules win over blocking rules — this mirrors how real filter * engines resolve conflicts, so the result matches what a user would actually * experience in their browser. */ export declare function matchUrl(url: string, rules: ParsedRule[]): MatchResult;