1 |
|
2 |
|
3 | import {Node} from 'unist'
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | declare function matches(selector: string, tree: Node): boolean
|
12 |
|
13 | /**
|
14 | * Find first Node that matches selector
|
15 | *
|
16 | * @param selector CSS-like selector
|
17 | * @param tree Unist node or tree of nodes to search
|
18 | */
|
19 | declare function select(selector: string, tree: Node): Node | null
|
20 |
|
21 | /**
|
22 | * Find all Nodes that match selector
|
23 | *
|
24 | * @param selector CSS-like selector
|
25 | * @param tree Unist node or tree of nodes to search
|
26 | */
|
27 | declare function selectAll(selector: string, tree: Node): Node[]
|
28 |
|
29 | export {matches, select, selectAll}
|
30 |
|
\ | No newline at end of file |