1
0
Fork 0
mirror of synced 2026-06-05 18:58:19 +00:00
login/node_modules/xpath/xpath.d.ts
2023-11-20 14:12:35 +08:00

9 lines
556 B
TypeScript

type SelectedValue = Node | Attr | string | number | boolean;
interface XPathSelect {
(expression: string, node?: Node): Array<SelectedValue>;
(expression: string, node: Node, single: true): SelectedValue;
}
export var select: XPathSelect;
export function select1(expression: string, node?: Node): SelectedValue;
export function evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
export function useNamespaces(namespaceMap: { [name: string]: string }): XPathSelect;