/**
 * Functions for executing XPath expressions against page source XML.
 * Used as a fallback for unmappable XPath features (sibling axes, parent traversal, etc.)
 */
import type { ElementData } from './xpath-types.js';
/**
 * Result of finding an element by XPath with match count for uniqueness validation
 */
export interface XPathExecutionResult {
    element: ElementData;
    matchCount: number;
}
/**
 * Executes an XPath expression against page source XML and returns matching elements.
 *
 * @param xpathExpr - The XPath expression to execute
 * @param pageSource - The page source XML
 * @returns Array of ElementData for matching elements, or null if execution failed
 */
export declare function executeXPathOnPageSource(xpathExpr: string, pageSource: string): ElementData[] | null;
/**
 * Finds an element by executing XPath against page source and returns element data with match count.
 * Used for unmappable XPath fallback with uniqueness validation.
 *
 * @param xpathExpr - The XPath expression to execute
 * @param pageSource - The page source XML
 * @returns XPathExecutionResult with first matching element and total match count, or null if not found
 */
export declare function findElementByXPathWithFallback(xpathExpr: string, pageSource: string): XPathExecutionResult | null;
//# sourceMappingURL=xpath-page-source-executor.d.ts.map