This commit is contained in:
Александр Тороп
2024-03-30 18:27:37 +03:00
commit 038bf44010
2765 changed files with 293753 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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>;