export type Tag = { id: number; selector: string; location?: string; }; /** * Two-tier tag matching: * 1. Fast fingerprint lookup by id, data-attr, * or class from the selector's last segment * 2. Fallback iteration using native element.matches() */ declare class TagMatcher { private tags; private byId; private byDataAttr; private byClass; private fallback; setTags(tags: Tag[]): void; getTags(): Tag[]; /** Match element, its parent, or direct children against known tag selectors */ match(el: Element): Tag | null; private matchExact; clear(): void; } export declare function matchesLocation(tag: { location?: string; }): boolean; export default TagMatcher;