You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
1019 B

import { Node, Element } from "domhandler";
/***
* Remove an element from the dom
*
* @param elem The element to be removed
*/
export declare function removeElement(elem: Node): void;
/***
* Replace an element in the dom
*
* @param elem The element to be replaced
* @param replacement The element to be added
*/
export declare function replaceElement(elem: Node, replacement: Node): void;
/***
* Append a child to an element
*
* @param elem The element to append to
* @param child The element to be added as a child
*/
export declare function appendChild(elem: Element, child: Node): void;
/***
* Append an element after another
*
* @param elem The element to append to
* @param next The element be added
*/
export declare function append(elem: Node, next: Node): void;
/***
* Prepend an element before another
*
* @param elem The element to append to
* @param prev The element be added
*/
export declare function prepend(elem: Node, prev: Node): void;
//# sourceMappingURL=manipulation.d.ts.map