UNPKG

xpath-ts2

Version:

DOM 3 and 4 XPath 1.0 implementation for browser and Node.js environment with support for typescript 5.

18 lines (17 loc) 716 B
import { XPath } from './xpath'; import { XPathParser } from './xpath-parser'; import { XPathResultImpl } from './xpath-result-impl'; import { FunctionResolver, NamespaceResolver, VariableResolver, XPathContext } from './xpath-types'; export declare class XPathExpressionImpl implements XPathExpression { static getOwnerDocument(n: Node): Document | null; static detectHtmlDom(n?: Node): boolean; xpath: XPath; context: XPathContext; constructor(e: string, { vr, nr, fr, p }: { vr?: VariableResolver; nr?: NamespaceResolver; fr?: FunctionResolver; p?: XPathParser; }); evaluate(n: Node | undefined, t: number, _res: XPathResult | null): XPathResultImpl; }