import '../proof/patch-domhandler.ts'; export interface DomAnchor { xPath: string; /** Byte range of the element in the source html (parse5 source locations), * matching the slice the attestor reveals for this xPath. */ start: number; end: number; } /** * A verified xPath to the tightest element containing one of `targets`, or * undefined if the value isn't present in the parsed tree. Prefers a short * stable selector (unique id → identifying attr → class), falling back to an * absolute child-indexed path (`/html[1]/body[1]/…/option[1]`). Every candidate * is checked with the real `xpath` engine and only returned if it resolves, * first-match, to that exact element. */ export declare function elementAnchor(html: string, targets: string[]): DomAnchor | undefined;