Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
574 B
Plaintext
17 lines
574 B
Plaintext
import { Element } from 'domhandler';
|
|
import { Picker, Ast } from 'selderee';
|
|
/**
|
|
* A {@link BuilderFunction} implementation.
|
|
*
|
|
* Creates a function (in a {@link Picker} wrapper) that can run
|
|
* the decision tree against `htmlparser2` `Element` nodes.
|
|
*
|
|
* @typeParam V - the type of values associated with selectors.
|
|
*
|
|
* @param nodes - nodes ({@link DecisionTreeNode})
|
|
* from the root level of the decision tree.
|
|
*
|
|
* @returns a {@link Picker} object.
|
|
*/
|
|
export declare function hp2Builder<V>(nodes: Ast.DecisionTreeNode<V>[]): Picker<Element, V>;
|