@wikipathways/cxml
Version:
Advanced schema-aware streaming XML parser
22 lines • 751 B
TypeScript
export declare type NullOrString = null | string;
export declare type Ops = "=" | "!=" | "<" | "<=" | ">" | ">" | ">=" | ">=";
export declare type PredicateRaw = null | [string[], Ops, string];
export declare type PredicateParsed = null | {
left: string;
op: Ops;
right: string;
};
export interface ItemCommon {
axis: string;
namespace: string;
name: NullOrString;
attribute: NullOrString;
}
export interface ItemParsedPredicateRaw extends ItemCommon {
predicates: PredicateRaw[];
}
export interface ItemParsed extends ItemCommon {
predicates: PredicateParsed[];
}
export declare function parse(xpath: string, xpathNamespaceTbl: Record<string, string>): ItemParsed[];
//# sourceMappingURL=xpath.d.ts.map