import type { SelectorEngine, SelectorRoot } from './engine.js'; export interface TextSelectorOptions { exact?: boolean; regex?: boolean; } /** * Create a text matcher function based on options. */ export declare function createTextMatcher(text: string, options?: TextSelectorOptions): (content: string) => boolean; /** * Text content selector engine. * Matches elements containing the specified text. * Supports exact match with quotes: text="exact text" * Supports regex match with /pattern/: text=/pattern/ */ export declare class TextSelectorEngine implements SelectorEngine { readonly name = "text"; query(root: SelectorRoot, selector: string): Element | null; queryAll(root: SelectorRoot, selector: string): Element[]; private findTextElement; private findTextElements; private getDirectTextContent; } export declare const textEngine: TextSelectorEngine; //# sourceMappingURL=text.d.ts.map