xpath-ts2
Version:
DOM 3 and 4 XPath 1.0 implementation for browser and Node.js environment with support for typescript 5.
28 lines (27 loc) • 862 B
TypeScript
import { NodeTest } from './node-test';
import { Expression } from './xpath-types';
export declare class Step {
static ANCESTOR: number;
static ANCESTORORSELF: number;
static ATTRIBUTE: number;
static CHILD: number;
static DESCENDANT: number;
static DESCENDANTORSELF: number;
static FOLLOWING: number;
static FOLLOWINGSIBLING: number;
static NAMESPACE: number;
static PARENT: number;
static PRECEDING: number;
static PRECEDINGSIBLING: number;
static SELF: number;
static STEPNAMES: {
[key: number]: string;
};
static predicateString: (e: Expression) => string;
static predicatesString: (es: Expression[]) => string;
axis: number;
nodeTest: NodeTest;
predicates: Expression[];
constructor(axis: number, nodetest: NodeTest, preds: Expression[]);
toString(): string;
}