1 | import type { Node, Element } from "domhandler";
|
---|
2 | /**
|
---|
3 | * Remove an element from the dom
|
---|
4 | *
|
---|
5 | * @param elem The element to be removed
|
---|
6 | */
|
---|
7 | export declare function removeElement(elem: Node): void;
|
---|
8 | /**
|
---|
9 | * Replace an element in the dom
|
---|
10 | *
|
---|
11 | * @param elem The element to be replaced
|
---|
12 | * @param replacement The element to be added
|
---|
13 | */
|
---|
14 | export declare function replaceElement(elem: Node, replacement: Node): void;
|
---|
15 | /**
|
---|
16 | * Append a child to an element.
|
---|
17 | *
|
---|
18 | * @param elem The element to append to.
|
---|
19 | * @param child The element to be added as a child.
|
---|
20 | */
|
---|
21 | export declare function appendChild(elem: Element, child: Node): void;
|
---|
22 | /**
|
---|
23 | * Append an element after another.
|
---|
24 | *
|
---|
25 | * @param elem The element to append after.
|
---|
26 | * @param next The element be added.
|
---|
27 | */
|
---|
28 | export declare function append(elem: Node, next: Node): void;
|
---|
29 | /**
|
---|
30 | * Prepend a child to an element.
|
---|
31 | *
|
---|
32 | * @param elem The element to prepend before.
|
---|
33 | * @param child The element to be added as a child.
|
---|
34 | */
|
---|
35 | export declare function prependChild(elem: Element, child: Node): void;
|
---|
36 | /**
|
---|
37 | * Prepend an element before another.
|
---|
38 | *
|
---|
39 | * @param elem The element to prepend before.
|
---|
40 | * @param prev The element be added.
|
---|
41 | */
|
---|
42 | export declare function prepend(elem: Node, prev: Node): void;
|
---|
43 | //# sourceMappingURL=manipulation.d.ts.map |
---|