1 | import { ASTNode as Node } from 'parse5';
|
2 | export { ASTNode as Node } from 'parse5';
|
3 | export declare function cloneNode(node: Node): Node;
|
4 | export declare function replace(oldNode: Node, newNode: Node): void;
|
5 | export declare function remove(node: Node): void;
|
6 | export declare function insertBefore(parent: Node, target: Node, newNode: Node): void;
|
7 | export declare function insertAfter(parent: Node, target: Node, newNode: Node): void;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function removeNodeSaveChildren(node: Node): void;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function removeFakeRootElements(ast: Node): void;
|
20 | export declare function append(parent: Node, newNode: Node): void;
|
21 | export declare const constructors: {
|
22 | text: (value: string) => Node;
|
23 | comment: (comment: string) => Node;
|
24 | element: (tagName: string, namespace?: string | undefined) => Node;
|
25 | fragment: () => Node;
|
26 | };
|