site/node_modules/speech-rule-engine/js/common/xpath_util.d.ts

18 lines
771 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
export declare const xpath: {
currentDocument: Document;
evaluate: (x: string, node: Node, nsr: Resolver, rt: number, result: XPathResult) => XPathResult;
result: any;
createNSResolver: (nodeResolver: Node) => XPathNSResolver;
};
export declare function resolveNameSpace(prefix: string): string;
declare class Resolver {
lookupNamespaceURI: any;
constructor();
}
export declare function evalXPath(expression: string, rootNode: Node): Node[];
export declare function getLeafNodes(rootNode: Node): Node[];
export declare function evaluateBoolean(expression: string, rootNode: Node): boolean;
export declare function evaluateString(expression: string, rootNode: Node): string;
export declare function updateEvaluator(node: Element): void;
export {};